1struct Attribute { }; 2 3template <class T> bool operator == (const Attribute &attr, const T &value); 4 5enum { 6 anon = 123 7}; 8 9void test(int foo) 10{ 11 if (foo == anon) ; /* { dg-bogus "anonymous type" } */ 12} 13