* pt.c (tsubst_copy_and_build): Use current_class_name.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 May 2011 03:49:12 +0000 (03:49 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 May 2011 03:49:12 +0000 (03:49 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174102 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/pt.c

index c00e064..ee2c9d9 100644 (file)
@@ -1,5 +1,7 @@
 2011-05-23  Jason Merrill  <jason@redhat.com>
 
+       * pt.c (tsubst_copy_and_build): Use current_class_name.
+
        PR c++/49102
        * call.c (convert_arg_to_ellipsis): Call force_rvalue.
 
index 4299733..dbff91e 100644 (file)
@@ -13017,8 +13017,7 @@ tsubst_copy_and_build (tree t,
                        else
                          inform (EXPR_LOC_OR_HERE (t),
                                  "use %<%T::%D%> instead",
-                                 TYPE_IDENTIFIER (current_class_type),
-                                 function);
+                                 current_class_name, function);
                      }
                    else
                      inform (0, "%q+D declared here, later in the "