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-70204b.C
blob
2b07d4fec9e8fbd5692f154cc309723beec6ecd3
1
// PR c++/70204
2
// { dg-do compile { target c++11 } }
3
4
int a;
5
6
void fn1 ()
7
{
8
const int x = 0 * a;
9
constexpr int y = x; // { dg-error "constant" }
10
}