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++/42059] [4.4/4.5 Regression] [c++0x] ICE with initializer list for VLA



------- Comment #3 from jakub at gcc dot gnu dot org  2009-11-17 07:22 -------
Subject: Bug 42059

Author: jakub
Date: Tue Nov 17 07:21:43 2009
New Revision: 154239

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154239
Log:
        PR c++/42059
        * typeck.c (cp_build_modify_expr): For initializer list call
        check_array_initializer to make sure lhs isn't a VLA.

        * g++.dg/cpp0x/initlist26.C: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/initlist26.C
Modified:
    branches/gcc-4_4-branch/gcc/cp/ChangeLog
    branches/gcc-4_4-branch/gcc/cp/typeck.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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