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
/
constexpr-empty2.C
blob
51f3f554dfcd0c908a36105f7e89dc1bc3300f57
1
// { dg-do compile { target c++11 } }
2
3
struct IsLiteral {};
4
5
constexpr IsLiteral bar(IsLiteral x) { return x; }
6
7
constexpr auto xy = bar(IsLiteral()); // #1 Error, but should be OK