blob: 4ba5ae71f703e2d0daab9c2ce53c60ba336063f4 [file] [log] [blame]
// PR c++/33836
// { dg-do compile }
// { dg-options "" }
template<int N> struct A
{
enum { M = && N }; // { dg-error "referenced outside|cannot appear in|integral" }
};
A<0> a;
void foo ()
{
__label__ P;
enum { O = && P }; // { dg-error "14:enumerator value for .O. must have integral|cannot appear in" }
P:;
}