]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: add fixed test [PR66878]
authorMarek Polacek <polacek@redhat.com>
Fri, 14 Feb 2025 18:48:03 +0000 (13:48 -0500)
committerMarek Polacek <polacek@redhat.com>
Fri, 14 Feb 2025 18:48:17 +0000 (13:48 -0500)
Fixed by r11-175.

PR c++/66878

gcc/testsuite/ChangeLog:

* g++.dg/lookup/using71.C: New test.

gcc/testsuite/g++.dg/lookup/using71.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/lookup/using71.C b/gcc/testsuite/g++.dg/lookup/using71.C
new file mode 100644 (file)
index 0000000..b899e0a
--- /dev/null
@@ -0,0 +1,12 @@
+// PR c++/66878
+
+struct S;
+
+namespace H {
+    namespace P {
+        using ::S;
+    }
+    struct P::S {};
+}
+
+int main() {}