------- Comment #3 from jakub at gcc dot gnu dot org 2009-06-08 16:31 ------- Subject: Bug 40372
Author: jakub Date: Mon Jun 8 16:31:07 2009 New Revision: 148281 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148281 Log: PR c++/40370 PR c++/40372 * parser.c (cp_parser_direct_declarator): Don't set TREE_SIDE_EFFECTS on error_mark_node. Check for VLAs outside of function context before check whether to wrap bounds into a NOP_EXPR with TREE_SIDE_EFFECTS. * g++.dg/template/error41.C: New test. * g++.dg/template/error42.C: New test. Added: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/error41.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/error42.C Modified: branches/gcc-4_4-branch/gcc/cp/ChangeLog branches/gcc-4_4-branch/gcc/cp/parser.c branches/gcc-4_4-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40372