This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Really fix PR18596
On Sun, 19 Dec 2004, James A. Morrison wrote:
> Right, I can avoid the syntax error using
> if ($<ttype>$)
> start_init (...);
> ...
> if (!$<ttype>5)
> break;
> finish_init ...
I don't think you want a break outside a switch or loop, and start_init
works without a decl to initialize (for compound literals) so it should be
possible for start_init and finish_init to be called even in this error
case (and so ensure that calls to them always bracket initializer
parsing).
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)