2011-05-24 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 May 2011 17:33:22 +0000 (17:33 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 May 2011 17:33:22 +0000 (17:33 +0000)
* decl.c (grokdeclarator): Use current_class_name.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174125 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl.c

index 8c47e0f..351b072 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 234daaf..d87a837 100644 (file)
@@ -9910,7 +9910,7 @@ grokdeclarator (const cp_declarator *declarator,
               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",