repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae25.C
blob
0ff872c9e23ce23fe93d3e6f04e6634602a0e4d0
1
// PR c++/49105
2
// { dg-do compile { target c++11 } }
3
4
template<class T, class = decltype(T{})>
5
char f(int);
6
7
template<class T>
8
auto f(...) -> char(&)[2];
9
10
static_assert(sizeof(f<const int&&>(0)) == 1, "Error"); // #