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-condition.C
blob
388a73488e7a363ffab2b0fdfb053942b6ee96ec
1
// { dg-do compile { target c++11 } }
2
// Core DR 948
3
4
constexpr int something() { return 3; }
5
6
int main() {
7
if (constexpr long v = something()) {}
8
if (static long v = something()) { } // { dg-error "decl-specifier invalid" }
9
}