PR c++/29226
commit44bfd07f5b526d78c31bf28b0334a026d6a6f489
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Oct 2006 22:21:02 +0000 (2 22:21 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Oct 2006 22:21:02 +0000 (2 22:21 +0000)
tree0de8388354780a356e1169313f94c5b902134961
parent5ad7fb6daf2061e28e83fc59b0f2851c75686fa1
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117375 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/vla1.C [new file with mode: 0644]