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++/3406


Applied.  Note that I'm waiting for some decisions on how to do parens1.C.
:-)

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

Index: g++.dg/parse/parens2.C
===================================================================
RCS file: g++.dg/parse/parens2.C
diff -N g++.dg/parse/parens2.C
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ g++.dg/parse/parens2.C	1 Jan 2003 14:29:05 -0000
@@ -0,0 +1,9 @@
+/* PR c++/3406 */
+/* { dg-do compile } */
+int main()
+{
+  // The parentheses around the expression caused parse errors before 3.4.
+  ( int() > int() );
+  return 0;
+}
+ 


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