summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/strong-using-2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/lookup/strong-using-2.C')
-rw-r--r--gcc/testsuite/g++.dg/lookup/strong-using-2.C24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/lookup/strong-using-2.C b/gcc/testsuite/g++.dg/lookup/strong-using-2.C
new file mode 100644
index 000000000..38bb54c2f
--- /dev/null
+++ b/gcc/testsuite/g++.dg/lookup/strong-using-2.C
@@ -0,0 +1,24 @@
+// PR c++/13594
+
+// { dg-options "" }
+// { dg-do compile }
+
+namespace foo {
+ inline namespace foo_impl {
+ class T; // { dg-error "T" "" }
+ }
+}
+namespace bar {
+ inline namespace bar_impl {
+ class T; // { dg-error "T" "" }
+ }
+ using namespace foo;
+}
+namespace baz {
+ using namespace foo;
+ using namespace bar;
+}
+
+foo::T *t1;
+bar::T *t2;
+baz::T *t3; // { dg-error "(ambiguous|does not name a type)" "" }