blob: 8845647601b4b972f3d1824b9f1eab9de5c970b6 (
plain)
1
2
3
4
5
6
7
8
9
|
// PR c++/17524
template<typename T> struct A
{
static const T i = 0; // { dg-error "declared void" "void" }
// { dg-error "invalid|non-literal" "invalid" { target *-*-* } 5 }
};
A<void> a; // { dg-message "instantiated" }
|