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 c++/67


Knocking off the PRs below 100.

Neil.

	* g++.dg/parse/parse2.C: New test.

Index: g++.dg/parse/parse2.C
===================================================================
RCS file: g++.dg/parse/parse2.C
diff -N g++.dg/parse/parse2.C
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ g++.dg/parse/parse2.C	1 Jan 2003 00:37:24 -0000
@@ -0,0 +1,8 @@
+/* PR c++/67 */
+/* { dg-do compile } */
+
+template <class T> struct foo {
+   static const int bar [3];
+};
+// Used to fail if 2+1 rather than 3.
+template <class T> const int foo<T>::bar [2+1] = { 0, 0, 0 };


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