================
@@ -430,3 +434,15 @@ void ctad_test() {
   CTAD t = s; // expected-warning {{class template argument deduction is 
incompatible with C++ standards before C++17}}
 }
 #endif
+
+namespace GH161702 {
+struct S {
+  enum E { A };
+  using E::A; // expected-warning {{enumeration type in nested name specifier 
is incompatible with C++98}}
+#ifndef CXX20COMPAT 
----------------
shafik wrote:

then I have to add `-verify` to other command lines and once go down that road 
then it gets more complicated and then I am edging toward a larger refactor 
which is what I want to avoid. I played around w/ it and it got tricky quickly.

https://github.com/llvm/llvm-project/pull/161277
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to