re PR c++/23725 (Error message regression with g++.dg/inherit/using4.C)
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 15 Sep 2005 11:27:12 +0000 (11:27 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 15 Sep 2005 11:27:12 +0000 (11:27 +0000)
PR c++/23725
* error.c (dump_decl): <USING_DECL case> Use USING_DECL_SCOPE.

From-SVN: r104302

gcc/cp/ChangeLog
gcc/cp/error.c

index 4033dc30096efcdd72a0ebeeadba37a627dd0352..7338b0754186cc0ef90b773bbf3b0c58e4c2eb49 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-15  Nathan Sidwell  <nathan@codesourcery.com>
+
+       PR c++/23725
+       * error.c (dump_decl): <USING_DECL case> Use USING_DECL_SCOPE.
+
 2005-09-13  Bastian Blank <waldi@debian.org>
 
        PR c++/16171
index 12201198630acc0a9cb319da7d0b6472b5ae64ad..0490fc5bc152ac91f8092743b2cf2b41aae58854 100644 (file)
@@ -877,7 +877,7 @@ dump_decl (tree t, int flags)
 
     case USING_DECL:
       pp_cxx_identifier (cxx_pp, "using");
-      dump_type (DECL_INITIAL (t), flags);
+      dump_type (USING_DECL_SCOPE (t), flags);
       pp_cxx_colon_colon (cxx_pp);
       dump_decl (DECL_NAME (t), flags);
       break;