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
/
static_assert11.C
blob
36bf458e25f7852db5ea1b3e1401912ec87804d1
1
// PR c++/60254
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
template<typename T> bool foo(T)
7
{
8
static_assert(foo(0), "Error"); // { dg-error "non-constant condition|constant expression" }
9
return true;
10
}
11
};