This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, committed] Add testcase for fixed PR c++/9022


This is just a testcase for PR9022.  The bug has already been fixed
in the new parser but appear not covered by the testsuite.  Committed
to trunk.

--Kriang

2003-05-18  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

	PR c++/9022
	* g++.dg/lookup/using6.C: New test.

diff -cprN gcc-main-save/gcc/testsuite/g++.dg/lookup/using6.C gcc-main-new/gcc/testsuite/g++.dg/lookup/using6.C
*** gcc-main-save/gcc/testsuite/g++.dg/lookup/using6.C	Thu Jan  1 07:00:00 1970
--- gcc-main-new/gcc/testsuite/g++.dg/lookup/using6.C	Sun May 18 17:54:59 2003
***************
*** 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" }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]