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]

Re: [patch] Fix PR 20563: Parser hiccups on invalid __label__ declaration


Volker Reichelt wrote:
When parsing a __label__ declaration with an invalid or missing label,
the compiler either ICE's (with --enable-checking) or runs into an
infinite loop (with --disable-checking).

This is due to the following loop in cp_parser_label_declaration:

Thanks for catching! That was a thinko on my part in the new parser.


Bootstrapped and regtested on i686-pc-linux-gnu.
Ok for 3.4 branch, 4.0 branch (since it's a regression) and mainline?

Yes. Wait for 4.0.1 to come out, though, please, before committing there.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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