]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/static_assert11.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / static_assert11.C
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 };
This page took 0.038188 seconds and 5 git commands to generate.