]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/28879 (ICE with VLA in template function)
authorJason Merrill <jason@redhat.com>
Sat, 21 Mar 2009 20:15:41 +0000 (16:15 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 21 Mar 2009 20:15:41 +0000 (16:15 -0400)
commitc11655358bd4a0f3dba75e77dc531a9399f37684
tree632fbc5aeb17457459bfa8833e865a8f2f37a7fd
parentb39f88bd05693c200851c934fca5ee8d0121173e
re PR c++/28879 (ICE with VLA in template function)

        PR c++/28879
        * parser.c (cp_parser_direct_declarator): In a template, wrap
        non-constant expression in NOP_EXPR with TREE_SIDE_EFFECTS set.
        * pt.c (tsubst): Preserve it in a partial instantiation.
        (dependent_type_p_r): Don't check value_dependent_expression_p.
        * decl.c (compute_array_index_type): Don't check
        value_dependent_expression_p if TREE_SIDE_EFFECTS.

From-SVN: r144988
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/vla6.C [new file with mode: 0644]