aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>2003-05-18 11:21:27 +0000
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>2003-05-18 11:21:27 +0000
commit5c9acdf71aa42826ff7cd5d54f11214102949ae9 (patch)
tree3b893dfb6c1101edb0d49ce37f79c3a36faa6f67
parentdc1f1d7f9d6072d34716fc66bd9dfe4b5d6086dc (diff)
downloadgcc-5c9acdf71aa42826ff7cd5d54f11214102949ae9.zip
gcc-5c9acdf71aa42826ff7cd5d54f11214102949ae9.tar.gz
gcc-5c9acdf71aa42826ff7cd5d54f11214102949ae9.tar.bz2
re PR c++/9022 (using declaration accepted as using directive)
PR c++/9022 * g++.dg/lookup/using6.C: New test. From-SVN: r66928
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/lookup/using6.C11
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a2ad87c..5a4ce5a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2003-05-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
+ PR c++/9022
+ * g++.dg/lookup/using6.C: New test.
+
+2003-05-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
+
* g++.dg/parse/access2.C: New test.
2003-05-17 Mark Mitchell <mark@codesourcery.com>
diff --git a/gcc/testsuite/g++.dg/lookup/using6.C b/gcc/testsuite/g++.dg/lookup/using6.C
new file mode 100644
index 0000000..416f0b5
--- /dev/null
+++ b/gcc/testsuite/g++.dg/lookup/using6.C
@@ -0,0 +1,11 @@
+// { dg-do compile }
+
+// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
+
+// PR c++/9022, nested namespace in using declaration
+
+namespace gnu {
+ namespace gcc {
+ }
+}
+using gnu::gcc; // { dg-error "namespace" }