This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/49120] [4.5 Regression] bogus "value computed is not used" warning (variable-length array in compound statement)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49120

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-19 12:48:54 UTC ---
Author: jakub
Date: Tue Jul 19 12:48:50 2011
New Revision: 176450

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176450
Log:
    Backport from mainline
    2011-05-23  Jakub Jelinek  <jakub@redhat.com>

    PR c/49120
    * c-decl.c (start_decl): Convert expr to void_type_node.

    * gcc.dg/pr49120.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/pr49120.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/c-decl.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]