repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae7.C
blob
18b3d8fa61e8cbfa97fd00e5f7148f9f68ae5896
1
// { dg-do compile { target c++11 } }
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
}