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