re PR c++/29226 (ICE in make_decl_rtl, at varasm.c:886)
authorMark Mitchell <mark@codesourcery.com>
Mon, 2 Oct 2006 22:21:02 +0000 (22:21 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 2 Oct 2006 22:21:02 +0000 (22:21 +0000)
commit3c17e16e318408f9f4dd6a7a8d2f4a567bb85c93
tree0de8388354780a356e1169313f94c5b902134961
parent1c846af9c5feacfaaff015a38422eedebb3fdf95
re PR c++/29226 (ICE in make_decl_rtl, at varasm.c:886)

PR c++/29226
* typeck.c (cxx_sizeof_or_alignof_type): Tidy.  In templates, do
not try to actually evaluate sizeof for a VLA type.
PR c++/29226
* g++.dg/template/vla1.C: New test.

From-SVN: r117375
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/vla1.C [new file with mode: 0644]