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]

Testcase for fixed PR c++/2049


Applied.

+	g++.dg/parse/namespace2.C: New test.

Index: g++.dg/parse/namespace2.C
===================================================================
RCS file: g++.dg/parse/namespace2.C
diff -N g++.dg/parse/namespace2.C
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ g++.dg/parse/namespace2.C	1 Jan 2003 19:59:10 -0000
@@ -0,0 +1,15 @@
+/* PR c++/2537 */
+/* { dg-do compile } */
+
+// Used to have namespace name/identifier conflict, prior to 3.4.
+
+namespace baz {}
+ 
+namespace foo
+ {
+   struct bar
+   {
+     unsigned baz:1;
+   };
+ }
+ 


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