[Bug c++/29728] [4.0/4.1/4.2 regression] ICE on invalid initializer in template function

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Dec 6 01:46:00 GMT 2006



------- Comment #4 from mmitchel at gcc dot gnu dot org  2006-12-06 01:46 -------
Subject: Bug 29728

Author: mmitchel
Date: Wed Dec  6 01:46:26 2006
New Revision: 119574

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119574
Log:
        PR c++/29728
        * decl.c (check_array_designated_initializer): New function.
        (maybe_deduce_size_from_array_init): Use it.
        (reshape_init_array): Likewise.
        PR c++/29728
        * g++.dg/template/crash62.C: New test.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/crash62.C
Modified:
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/decl.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list