From: Alexandre Oliva Date: Thu, 15 Jan 2004 14:42:13 +0000 (+0000) Subject: re PR c++/13594 (namespace association vs. templates part two) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=693ec7e1f23f442e91db57177e5b6b0929866b87;p=gcc.git re PR c++/13594 (namespace association vs. templates part two) PR c++/13594 * g++.dg/lookup/strong-using-2.C: New. From-SVN: r75922 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9755bae2c90..1f1580cbf4d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-01-15 Alexandre Oliva + + PR c++/13594 + * g++.dg/lookup/strong-using-2.C: New. + 2004-01-15 Marcus Comstedt Dan Kegel J"orn Rennecke 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 00000000000..8d45e00e0e1 --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/strong-using-2.C @@ -0,0 +1,25 @@ +// PR c++/13594 + +// { dg-do compile } + +namespace foo_impl { + class T; // { dg-error "first declared" "" } +} +namespace bar_impl { + class T; // { dg-error "also declared" "" } +} +namespace foo { + using namespace foo_impl __attribute__((strong)); +} +namespace bar { + using namespace bar_impl __attribute__((strong)); + using namespace foo; +} +namespace baz { + using namespace foo; + using namespace bar; +} + +foo::T *t1; +bar::T *t2; +baz::T *t3; // { dg-error "(ambiguous|expected|extra)" "" }