re PR c++/16270 (ICE on inner member template)

PR c++/16270
	* decl.c (grokdeclarator): Robustify.

From-SVN: r84029
This commit is contained in:
Mark Mitchell 2004-07-02 21:59:42 +00:00 committed by Mark Mitchell
parent bdef965932
commit 717733d453
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-07-02 Mark Mitchell <mark@codesourcery.com>
PR c++/16270
* decl.c (grokdeclarator): Robustify.
2004-07-01 Richard Henderson <rth@redhat.com>
* class.c (fixed_type_or_null): Don't handle RTL_EXPR.

View File

@ -6379,6 +6379,8 @@ grokdeclarator (const cp_declarator *declarator,
}
if (TREE_CODE (decl) == BASELINK)
decl = BASELINK_FUNCTIONS (decl);
if (decl == error_mark_node)
return error_mark_node;
switch (TREE_CODE (decl))
{
case BIT_NOT_EXPR: