Author: Oliver Hunt
Date: 2026-05-09T23:12:21Z
New Revision: 4eedcd87fd8d2b9ba31d4b19e162557161ef0550

URL: 
https://github.com/llvm/llvm-project/commit/4eedcd87fd8d2b9ba31d4b19e162557161ef0550
DIFF: 
https://github.com/llvm/llvm-project/commit/4eedcd87fd8d2b9ba31d4b19e162557161ef0550.diff

LOG: [clang][NFC] Actually add the testcase for #195416 (#196759)

Added: 
    clang/test/SemaCXX/GH195416.cpp

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/clang/test/SemaCXX/GH195416.cpp b/clang/test/SemaCXX/GH195416.cpp
new file mode 100644
index 0000000000000..85ed2961d0ef6
--- /dev/null
+++ b/clang/test/SemaCXX/GH195416.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
+
+constexpr void gh195416() {
+  struct U {
+    struct S {};
+    static constexpr S S::bar;
+    // expected-error@-1 {{non-friend class member 'bar' cannot have a 
qualified name}}
+    // expected-error@-2 {{static data member 'bar' not allowed in local 
struct 'S'}}
+  };
+}


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

Reply via email to