From: Marek Polacek Date: Fri, 14 Feb 2025 18:48:03 +0000 (-0500) Subject: c++: add fixed test [PR66878] X-Git-Tag: basepoints/gcc-16~2018 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=720137f4ee6e80de5c22b9f9c9750f13b2132fe6;p=thirdparty%2Fgcc.git c++: add fixed test [PR66878] Fixed by r11-175. PR c++/66878 gcc/testsuite/ChangeLog: * g++.dg/lookup/using71.C: New test. --- diff --git a/gcc/testsuite/g++.dg/lookup/using71.C b/gcc/testsuite/g++.dg/lookup/using71.C new file mode 100644 index 00000000000..b899e0a27a3 --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/using71.C @@ -0,0 +1,12 @@ +// PR c++/66878 + +struct S; + +namespace H { + namespace P { + using ::S; + } + struct P::S {}; +} + +int main() {}