This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix PR c++/28741


Hi,

PR c++/28741 is a 4.2 regression which might have been caused by my
patch to fix PR c++.27668 and is caused by more parts of the front-end
which couldn't handle error_mark_nodes.

After fixing the reported ICE another one cropped up in
determine_visibility, also caused by an error_mark_node. The attached
patch fixes both occurrences by adding in the relevant checks against
error_mark_node to the affected places.

Bootstrapped and regression tested on i686-pc-linux-gnu, ok for mainline?

Cheers,
Lee.

:ADDPATCH c++:

2006-08-19 Lee Millward <lee.millward@codesourcery.com>

       PR c++/28741
       * tree.c (decl_anon_ns_mem_p): Robustify.
       * decl2.c (determine_visibility): Likewise.

2006-08-19 Lee Millward <lee.millward@codesourcery.com>

       PR c++/28741
       * g++.dg/template/void7.C: New test.

Attachment: pr28741.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]