public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug objc/48187] New: infinite errors with misplaced [ in @interface definition @ 2011-03-18 16:02 cjwl at objc dot net 2011-03-19 1:13 ` [Bug objc/48187] " nicola at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: cjwl at objc dot net @ 2011-03-18 16:02 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48187 Summary: infinite errors with misplaced [ in @interface definition Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: objc AssignedTo: unassigned@gcc.gnu.org ReportedBy: cjwl@objc.net While parsing the code: @interface InfiniteErrors { ]} @end The compiler will repeatedly and indefinitely log the error: error: expected specifier-qualifier-list before ']' token This occurs in 4.2.1 also, so I believe it is an old problem, searched for an existing report but don't see anything similar. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug objc/48187] infinite errors with misplaced [ in @interface definition 2011-03-18 16:02 [Bug objc/48187] New: infinite errors with misplaced [ in @interface definition cjwl at objc dot net @ 2011-03-19 1:13 ` nicola at gcc dot gnu.org 2011-05-24 18:05 ` nicola at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: nicola at gcc dot gnu.org @ 2011-03-19 1:13 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48187 Nicola Pero <nicola at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011.03.19 00:03:52 CC| |nicola at gcc dot gnu.org Ever Confirmed|0 |1 --- Comment #1 from Nicola Pero <nicola at gcc dot gnu.org> 2011-03-19 00:03:52 UTC --- Yes, confirmed. Well spotted! Thanks a lot ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug objc/48187] infinite errors with misplaced [ in @interface definition 2011-03-18 16:02 [Bug objc/48187] New: infinite errors with misplaced [ in @interface definition cjwl at objc dot net 2011-03-19 1:13 ` [Bug objc/48187] " nicola at gcc dot gnu.org @ 2011-05-24 18:05 ` nicola at gcc dot gnu.org 2011-05-24 22:13 ` nicola at gcc dot gnu.org 2011-05-25 19:37 ` nicola at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: nicola at gcc dot gnu.org @ 2011-05-24 18:05 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48187 --- Comment #2 from Nicola Pero <nicola at gcc dot gnu.org> 2011-05-24 17:45:59 UTC --- I have a patch ready to fix this -- http://gcc.gnu.org/ml/gcc-patches/2011-05/msg01735.html Thanks ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug objc/48187] infinite errors with misplaced [ in @interface definition 2011-03-18 16:02 [Bug objc/48187] New: infinite errors with misplaced [ in @interface definition cjwl at objc dot net 2011-03-19 1:13 ` [Bug objc/48187] " nicola at gcc dot gnu.org 2011-05-24 18:05 ` nicola at gcc dot gnu.org @ 2011-05-24 22:13 ` nicola at gcc dot gnu.org 2011-05-25 19:37 ` nicola at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: nicola at gcc dot gnu.org @ 2011-05-24 22:13 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48187 --- Comment #3 from Nicola Pero <nicola at gcc dot gnu.org> 2011-05-24 21:29:38 UTC --- Author: nicola Date: Tue May 24 21:29:35 2011 New Revision: 174142 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174142 Log: In gcc/: 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com> PR objc/48187 * c-parser.c (c_parser_objc_class_instance_variables): More robust parsing of syntax error in ObjC instance variable lists. In particular, avoid an infinite loop if there is a stray ']'. Updated error message. In gcc/cp/: 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>, * parser.c (cp_parser_objc_class_ivars): Deal gracefully with a syntax error in declaring an ObjC instance variable. In gcc/testsuite/: 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com> PR objc/48187 * objc.dg/pr48187.m: New testcase. * obj-c++.dg/pr48187.mm: New testcase. * objc.dg/ivar-extra-semicolon.m: New testcase. Added: trunk/gcc/testsuite/obj-c++.dg/pr48187.mm trunk/gcc/testsuite/objc.dg/ivar-extra-semicolon.m trunk/gcc/testsuite/objc.dg/pr48187.m Modified: trunk/gcc/ChangeLog trunk/gcc/c-parser.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug objc/48187] infinite errors with misplaced [ in @interface definition 2011-03-18 16:02 [Bug objc/48187] New: infinite errors with misplaced [ in @interface definition cjwl at objc dot net ` (2 preceding siblings ...) 2011-05-24 22:13 ` nicola at gcc dot gnu.org @ 2011-05-25 19:37 ` nicola at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: nicola at gcc dot gnu.org @ 2011-05-25 19:37 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48187 Nicola Pero <nicola at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Nicola Pero <nicola at gcc dot gnu.org> 2011-05-25 18:58:45 UTC --- Patch applied to trunk. Thanks ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-05-25 18:59 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-03-18 16:02 [Bug objc/48187] New: infinite errors with misplaced [ in @interface definition cjwl at objc dot net 2011-03-19 1:13 ` [Bug objc/48187] " nicola at gcc dot gnu.org 2011-05-24 18:05 ` nicola at gcc dot gnu.org 2011-05-24 22:13 ` nicola at gcc dot gnu.org 2011-05-25 19:37 ` nicola at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).