Commit e857ea62 by Paolo Carlini Committed by Paolo Carlini

decl.c (grokdeclarator): Use current_class_name.

2011-05-24  Paolo Carlini  <paolo.carlini@oracle.com>

	* decl.c (grokdeclarator): Use current_class_name.

From-SVN: r174125
parent 8c5fdaae
2011-05-24 Paolo Carlini <paolo.carlini@oracle.com>
* decl.c (grokdeclarator): Use current_class_name.
2011-05-24 Joseph Myers <joseph@codesourcery.com> 2011-05-24 Joseph Myers <joseph@codesourcery.com>
* Make-lang.in (GXX_OBJS): Remove prefix.o. * Make-lang.in (GXX_OBJS): Remove prefix.o.
......
...@@ -9910,7 +9910,7 @@ grokdeclarator (const cp_declarator *declarator, ...@@ -9910,7 +9910,7 @@ grokdeclarator (const cp_declarator *declarator,
instantiation made the field's type be incomplete. */ instantiation made the field's type be incomplete. */
if (current_class_type if (current_class_type
&& TYPE_NAME (current_class_type) && TYPE_NAME (current_class_type)
&& IDENTIFIER_TEMPLATE (TYPE_IDENTIFIER (current_class_type)) && IDENTIFIER_TEMPLATE (current_class_name)
&& declspecs->type && declspecs->type
&& declspecs->type == type) && declspecs->type == type)
error (" in instantiation of template %qT", error (" in instantiation of template %qT",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment