struct Attribute { }; template bool operator == (const Attribute &attr, const T &value); enum { anon = 123 }; void test(int foo) { if (foo == anon) ; /* { dg-bogus "anonymous type" } */ }