* decl.c (grokdeclarator): Use current_class_name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174125
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-05-24 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * decl.c (grokdeclarator): Use current_class_name.
+
2011-05-24 Joseph Myers <joseph@codesourcery.com>
* Make-lang.in (GXX_OBJS): Remove prefix.o.
instantiation made the field's type be incomplete. */
if (current_class_type
&& TYPE_NAME (current_class_type)
- && IDENTIFIER_TEMPLATE (TYPE_IDENTIFIER (current_class_type))
+ && IDENTIFIER_TEMPLATE (current_class_name)
&& declspecs->type
&& declspecs->type == type)
error (" in instantiation of template %qT",