aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2012-07-09 21:44:57 +0000
committerSterling Augustine <sterling@gcc.gnu.org>2012-07-09 21:44:57 +0000
commit924ef62b9145c6c3e14e04dc6cd5034b472307b9 (patch)
tree64ef810d14d22cc86f27ad0a15aeeed73fc02a7a /gcc/cp
parent1cd130b0467be2880d35f1e328c809e95c9f27c8 (diff)
downloadgcc-924ef62b9145c6c3e14e04dc6cd5034b472307b9.zip
gcc-924ef62b9145c6c3e14e04dc6cd5034b472307b9.tar.gz
gcc-924ef62b9145c6c3e14e04dc6cd5034b472307b9.tar.bz2
error.c (lang_decl_name): Use TFF_UNQUALIFIED_NAME flag.
gcc/cp/ChangeLog 2012-07-09 Sterling Augustine <saugustine@google.com> * error.c (lang_decl_name): Use TFF_UNQUALIFIED_NAME flag. gcc/testsuite/ChangeLog 2012-07-09 Sterling Augustine <saugustine@google.com> * g++.dg/debug/dwarf2/pubnames-2.C: New. From-SVN: r189392
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/error.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 44ea786..1afef7a 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-09 Sterling Augustine <saugustine@google.com>
+
+ * error.c (lang_decl_name): Use TFF_UNQUALIFIED_NAME flag.
+
2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
* decl.c (cp_finish_decl): Add FIXME at add_local_decl call site.
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 67ff513..58f0aff 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -2633,7 +2633,7 @@ lang_decl_name (tree decl, int v, bool translate)
dump_function_name (decl, TFF_PLAIN_IDENTIFIER);
else if ((DECL_NAME (decl) == NULL_TREE)
&& TREE_CODE (decl) == NAMESPACE_DECL)
- dump_decl (decl, TFF_PLAIN_IDENTIFIER);
+ dump_decl (decl, TFF_PLAIN_IDENTIFIER | TFF_UNQUALIFIED_NAME);
else
dump_decl (DECL_NAME (decl), TFF_PLAIN_IDENTIFIER);