diff options
author | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-06-08 18:26:01 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-06-08 18:26:01 +0200 |
commit | 85a988d14eba08447282db312f99637a527bfba0 (patch) | |
tree | 0996b2383b9560e0508fc26e2c0b221bced86d75 /gcc/tree-object-size.c | |
parent | db34470d17bd803cf74f747e7714f6029abd9b38 (diff) | |
download | gcc-85a988d14eba08447282db312f99637a527bfba0.zip gcc-85a988d14eba08447282db312f99637a527bfba0.tar.gz gcc-85a988d14eba08447282db312f99637a527bfba0.tar.bz2 |
re PR c++/40370 (ICE with invalid array bound in template class)
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.
From-SVN: r148278
Diffstat (limited to 'gcc/tree-object-size.c')
0 files changed, 0 insertions, 0 deletions