A broken diagnostic is issued for the following invalid code snippet since GCC 4.1.0: ================================================== void foo() { ({ int i; })(); } ================================================== #'bind_expr' not supported by pp_c_expression#'bug.c: In function 'foo': bug.c:3: error: called object is not a function Similar to PR35441.
Closing 4.1 branch.
Subject: Bug 35443 Author: jakub Date: Mon Dec 8 18:04:58 2008 New Revision: 142559 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142559 Log: PR c/35443 * c-pretty-print.c (pp_c_expression): Handle BIND_EXPR. * gcc.dg/pr35443.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr35443.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-pretty-print.c trunk/gcc/testsuite/ChangeLog
Fixed.
Subject: Bug 35443 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