This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/49120] [4.5/4.6/4.7 Regression] bogus "value computed is not used" warning (variable-length array in compound statement)
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 May 2011 18:33:26 +0000
- Subject: [Bug c/49120] [4.5/4.6/4.7 Regression] bogus "value computed is not used" warning (variable-length array in compound statement)
- Auto-submitted: auto-generated
- References: <bug-49120-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49120
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-23 18:03:35 UTC ---
Author: jakub
Date: Mon May 23 18:03:31 2011
New Revision: 174082
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174082
Log:
PR c/49120
* c-decl.c (start_decl): Convert expr to void_type_node.
* gcc.dg/pr49120.c: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/pr49120.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/c-decl.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog