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++/28594


Hi,

The attached patch fixes PR c++/28594 which is fallout from my recent
patch for PR c++/27668 that stored invalid template parameters as
error_mark_nodes inside the template parameter list.

The ICE in this testcase is caused by another part of the front-end
which couldn't handle error_mark_nodes as a result of the above
change, so the obvious fix for this is to add the missing check for
error_mark_node in the affected place.

Bootstrapped and regression tested with no new failures on
i686-pc-linux-gnu. Ok for mainline and 4.1?

Cheers,
Lee.

:ADDPATCH c++:

cp/

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

       PR c++/28594
       * pt.c (process_template_parm): Robustify.

testsuite/

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

       PR c++/28594
       * g++.dg/template/void3.C: New test.

Attachment: pr28594.txt
Description: Text document


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