A broken diagnostic is issued for the following invalid code snippet since GCC 4.1.0: ========================================= void foo() { for (;;) ({break;})(); } ========================================= #'goto_expr' not supported by pp_c_expression#'bug.c: In function 'foo': bug.c:4: error: called object is not a function
Confirmed.
Closing 4.1 branch.
Subject: Bug 35742 Author: jakub Date: Fri Jan 9 16:46:47 2009 New Revision: 143209 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143209 Log: PR c/35742 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR. * gcc.dg/pr35742.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr35742.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-pretty-print.c trunk/gcc/testsuite/ChangeLog
Fixed on the trunk.
Closing 4.2 branch.
GCC 4.3.4 is being released, adjusting target milestone.
Subject: Bug 35742 Author: rguenth Date: Tue Apr 20 13:51:24 2010 New Revision: 158557 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158557 Log: 2010-04-20 Richard Guenther <rguenther@suse.de> Backport from mainline 2008-12-08 Jakub Jelinek <jakub@redhat.com> PR c/35443 * c-pretty-print.c (pp_c_expression): Handle BIND_EXPR. * gcc.dg/pr35443.c: New test. 2009-01-09 Jakub Jelinek <jakub@redhat.com> PR c/35742 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR. * gcc.dg/pr35742.c: New test. Added: branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr35443.c branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr35742.c Modified: branches/gcc-4_3-branch/gcc/ChangeLog branches/gcc-4_3-branch/gcc/c-pretty-print.c branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
Fixed.