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
/
sfinae41.C
blob
bd6f624f0adccffd72c7615d8568c74653ce06f9
1
// PR c++/54542
2
// { dg-do compile { target c++11 } }
3
4
template <class T>
5
void f(decltype(new T(1, 2)) *)
6
{
7
T(1, 2);
8
}
9
10
template <class T>
11
void f(...)
12
{}
13
14
int main()
15
{
16
f<int>(0);
17
}