Patch for C99 mixed declarations and code

Neil Booth NeilB@earthling.net
Mon Nov 6 23:46:00 GMT 2000


Joseph S. Myers wrote:-

> * Labels at end of compound statements (which seems to be why
> ends_in_label was there, and prevented stmts from expanding to a
> series of lineno_labeled_stmt - with the optional trailing labels
> extension at the end - because that would lead to a parser conflict).
> (This extension seems gratuitous - using a null statement is trivial,
> so it just serves to encourage nonportable (possibly unintentionally
> so) code.  This extension also seems to be undocumented - perhaps the
> pedwarn should become mandatory?)

Why not just kill it?  If it's complicating things and is fixable by
a simple semicolon...

Neil.


More information about the Gcc-patches mailing list