We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41e1b10 commit 66990b5Copy full SHA for 66990b5
clang/test/CXX/class/class.mem/p13.cpp
@@ -114,3 +114,12 @@ template<typename B> struct CtorDtorName : B {
114
CtorDtorName();
115
~CtorDtorName(); // expected-error {{identifier 'CtorDtorName' after '~' in destructor name does not name a type}}
116
};
117
+
118
+struct S {
119
+ enum E {
120
+ R = 11,
121
+ S = 12 // expected-error{{member 'S' has the same name as its class}}
122
+ };
123
+ static_assert(E::R == 11, "E::R is not 11");
124
+ static_assert(E::S == 12, "E::S is not 12"); // expected-error{{no member named 'S' in 'S::E'}}
125
+};
0 commit comments