diff options
author | lmillward <lmillward@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-12 20:02:53 +0000 |
---|---|---|
committer | lmillward <lmillward@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-12 20:02:53 +0000 |
commit | 779e287a0e590b5e39ef50a42a9cc3728140c4ca (patch) | |
tree | 9d618cd33c15c8d8e4b84231544bd954f4ad8229 /gcc/testsuite/g++.dg/parse | |
parent | d7df524d55ce02f9c19243fbaf295c56ef36eb07 (diff) | |
download | gcc-779e287a0e590b5e39ef50a42a9cc3728140c4ca.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117671 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/parse')
-rw-r--r-- | gcc/testsuite/g++.dg/parse/crash27.C | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/parse/crash27.C b/gcc/testsuite/g++.dg/parse/crash27.C index 4d6517727d1..1a13f818f11 100644 --- a/gcc/testsuite/g++.dg/parse/crash27.C +++ b/gcc/testsuite/g++.dg/parse/crash27.C @@ -6,4 +6,3 @@ void Dispatcher() /* { dg-error "expected type" "expected 1" { target *-*-* } 4 } */ /* { dg-error "expected `,' before" "expected 2" { target *-*-* } 4 } */ /* { dg-error "expected `\\\)" "expected 3" { target *-*-* } 4 } */ - /* { dg-error "expected ',' or" "expected 4" { target *-*-* } 4 } */ |