c-parse.in (stmts_and_decls): Make label at end of compound statement a hard error.
authorJoseph Myers <jsm@polyomino.org.uk>
Wed, 14 Jan 2004 23:03:58 +0000 (23:03 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 14 Jan 2004 23:03:58 +0000 (23:03 +0000)
commitf560bf91ae0ba419d7445eb19c09a4d1ad341e75
treefb2f0477c443e1bcc4e0b1c4601f9fca76be4ac1
parent95c755e90f94c5fbeed8cf58896d114989f9c771
c-parse.in (stmts_and_decls): Make label at end of compound statement a hard error.

* c-parse.in (stmts_and_decls): Make label at end of compound
statement a hard error.

testsuite:
* gcc.dg/label-compound-stmt-1.c: New test.
* gcc.c-torture/compile/950922-1.c,
gcc.c-torture/compile/20000211-3.c,
gcc.c-torture/compile/20000518-1.c,
gcc.c-torture/compile/20021108-1.c: Avoid labels at and of
compound statements.

From-SVN: r75891
gcc/ChangeLog
gcc/c-parse.in
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20000211-3.c
gcc/testsuite/gcc.c-torture/compile/20000518-1.c
gcc/testsuite/gcc.c-torture/compile/20021108-1.c
gcc/testsuite/gcc.c-torture/compile/950922-1.c
gcc/testsuite/gcc.dg/label-compound-stmt-1.c [new file with mode: 0644]