This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR c++/27961
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Lee Millward <lee dot millward at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 24 Sep 2006 14:02:40 -0400
- Subject: Re: [patch] Fix PR c++/27961
- References: <9784d3ab0609230927y2f8a7a61y3581a0a39f05410b@mail.gmail.com>
Lee Millward wrote:
2006-09-23 Lee Millward <lee.millward@codesourcery.com>
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,
s|of|or
set the type to error_mark_node.
(grokdeclarator): Check the return type of check_var_type.
* class.c (finish_struct_1): Robustify.
2006-09-23 Lee Millward <lee.millward@codesourcery.com>
PR c++/27961
* g++.dg/template/crash58.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.
:REVIEWMAIL: OK
+ {
+ type = check_var_type (unqualified_id, type);
+
+ if (type == error_mark_node)
+ return error_mark_node;
+ }
The blank line here is overkill; please remove it before you check in.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713