PR objc/45735 (more testcases)

Nicola Pero nicola.pero@meta-innovation.com
Sun Oct 24 15:27:00 GMT 2010


PR objc/45735 is another "ice-on-invalid-code" bug 
which we have fixed in trunk for 4.6.0 while working on
the ObjC method declaration/definition parsing.

Ok to commit two testcases ?

Thanks

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 165898)
+++ ChangeLog   (working copy)
@@ -1,5 +1,11 @@
 2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
 
+       PR objc/45735   
+       * obj-c.dg/pr45735.mm: New.     
+       * obj-c++.dg/pr45735.mm: New.
+
+2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
+
        PR objc/24393
        * objc.dg/pr24393.m: New.
        * obj-c++.dg/pr24393.mm: New.
Index: objc.dg/pr45735.m
===================================================================
--- objc.dg/pr45735.m   (revision 0)
+++ objc.dg/pr45735.m   (revision 0)
@@ -0,0 +1,4 @@
+/* { dg-compile } */
+@interface Fraction
+-(void) setNumerator: (int) :(int) ; /* { dg-error "expected identifier" } */
+@end
Index: obj-c++.dg/pr45735.mm
===================================================================
--- obj-c++.dg/pr45735.mm       (revision 0)
+++ obj-c++.dg/pr45735.mm       (revision 0)
@@ -0,0 +1,4 @@
+/* { dg-compile } */
+@interface Fraction
+-(void) setNumerator: (int) :(int) ; /* { dg-error "expected identifier" } */
+@end




More information about the Gcc-patches mailing list