aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorLee Millward <lee.millward@codesourcery.com>2006-10-12 20:02:53 +0000
committerLee Millward <lmillward@gcc.gnu.org>2006-10-12 20:02:53 +0000
commit650fcd0729e2fcf4df28a46a6de4bc748724e2b1 (patch)
tree9d618cd33c15c8d8e4b84231544bd954f4ad8229 /gcc/c-decl.c
parentdc0aeb60698a2ec7ece635ea3378ba4961694976 (diff)
downloadgcc-650fcd0729e2fcf4df28a46a6de4bc748724e2b1.zip
gcc-650fcd0729e2fcf4df28a46a6de4bc748724e2b1.tar.gz
gcc-650fcd0729e2fcf4df28a46a6de4bc748724e2b1.tar.bz2
re PR c++/27961 (ICE on invalid template declaration)
PR c++/27961 * decl.c (start_decl): Return error_mark_node if a function is initialized like a variable. (check_var_type): If a variable of field is declared void, set the type to error_mark_node. (grokdeclarator): Check the return type of check_var_type. * class.c (finish_struct_1): Robustify. * g++.dg/template/crash60.C: New test. * g++.dg/other/large-size-array.C: Adjust error markers. * g++.dg/parse/crash27.C: Likewise. * g++.dg/template/crash1.C: Likewise. From-SVN: r117671
Diffstat (limited to 'gcc/c-decl.c')
0 files changed, 0 insertions, 0 deletions