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++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype22.C
blob
b3ff8b84a43975afb393c8541cff8ddadbd4fc39
1
// PR c++/42761
2
// { dg-do compile { target c++11 } }
3
4
template<typename _Tp> _Tp* fn();
5
6
template <class T> struct A
7
{
8
template <class U,
9
class S = decltype(fn<T>())>
10
struct B { };
11
};
12
13
A<int> a;