[Bug c++/28879] [4.0/4.1/4.2/4.3 regression] ICE with VLA in template function

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 20 06:39:00 GMT 2007



------- Comment #6 from jakub at gcc dot gnu dot org  2007-11-20 06:38 -------
Subject: Bug 28879

Author: jakub
Date: Tue Nov 20 06:38:48 2007
New Revision: 130309

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130309
Log:
        PR c++/28879
        * tree.c (build_cplus_array_type_1): Don't pass any VLA types
        when processing_template_decl to build_array_type.

        * g++.dg/template/vla2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/template/vla2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list