diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2004-01-15 14:42:13 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2004-01-15 14:42:13 +0000 |
commit | 693ec7e1f23f442e91db57177e5b6b0929866b87 (patch) | |
tree | 0e6cf147daf313d9d006ba04cb8854c4d7801343 | |
parent | dc55c941abf8293107a7ab179dddb66747c946e2 (diff) | |
download | gcc-693ec7e1f23f442e91db57177e5b6b0929866b87.zip gcc-693ec7e1f23f442e91db57177e5b6b0929866b87.tar.gz gcc-693ec7e1f23f442e91db57177e5b6b0929866b87.tar.bz2 |
re PR c++/13594 (namespace association vs. templates part two)
PR c++/13594
* g++.dg/lookup/strong-using-2.C: New.
From-SVN: r75922
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lookup/strong-using-2.C | 25 |
2 files changed, 30 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9755bae..1f1580c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-01-15 Alexandre Oliva <aoliva@redhat.com> + + PR c++/13594 + * g++.dg/lookup/strong-using-2.C: New. + 2004-01-15 Marcus Comstedt <marcus@mc.pp.se> Dan Kegel <dank@kegel.com> J"orn Rennecke <joern.rennecke@superh.com> 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 0000000..8d45e00 --- /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)" "" } |