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 227d45e commit dece2b9Copy full SHA for dece2b9
clang/test/SemaCXX/cxx98-compat.cpp
@@ -434,3 +434,15 @@ void ctad_test() {
434
CTAD t = s; // expected-warning {{class template argument deduction is incompatible with C++ standards before C++17}}
435
}
436
#endif
437
+
438
+namespace GH161702 {
439
+struct S {
440
+ enum E { A };
441
+ using E::A; // expected-warning {{enumeration type in nested name specifier is incompatible with C++98}}
442
+#ifndef CXX20COMPAT
443
+ // expected-error@-2 {{using declaration refers to its own class}}
444
+#else
445
+ // expected-warning@-4 {{member using declaration naming non-class ''E'' enumerator is incompatible with C++ standards before C++20}}
446
+#endif
447
+};
448
+}
0 commit comments