1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 namespace pr6200 { 4 struct v {}; 5 enum E { e }; 6 struct s { 7 int i; 8 operator struct v() { return v(); }; 9 operator enum E() { return e; } 10 }; 11 12 void f() 13 { 14 // None of these is a declaration. 15 (void)new struct s; 16 (void)new enum E; 17 (void)&s::operator struct v; 18 (void)&s::operator enum E; 19 } 20 } 21