OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/51143 - Alias template allows class definition
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae7.C
1
// { dg-options -std=c++0x }
2
3
struct A
4
{
5
void f();
6
void f(int);
7
typedef int g;
8
};
9
10
template <class T> decltype (T::f) f();
11
template <class T> void f();
12
13
template <class T> decltype (T::g) g();
14
template <class T> void g();
15
16
int main()
17
{
18
f<A>();
19
g<A>();
20
}