This is the mail archive of the
mailing list for the GCC project.
Re: [patch] Fix PR 20563: Parser hiccups on invalid __label__ declaration
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 07 Jun 2005 17:48:08 -0700
- Subject: Re: [patch] Fix PR 20563: Parser hiccups on invalid __label__ declaration
- References: <200506071956.j57JuXSp011464@relay.rwth-aachen.de>
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.