aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJoseph Myers <jsm@polyomino.org.uk>2004-07-06 23:42:45 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2004-07-06 23:42:45 +0100
commit82b5e52a9e41fbc4893f2dd0d2ba99bb2db70f4c (patch)
treedfa11bc5308fed458a1f6489e263f02721dcce69 /gcc/cp
parentb39edae36eba74d4e0bdf5049544bb5f86dbe8bd (diff)
downloadgcc-82b5e52a9e41fbc4893f2dd0d2ba99bb2db70f4c.zip
gcc-82b5e52a9e41fbc4893f2dd0d2ba99bb2db70f4c.tar.gz
gcc-82b5e52a9e41fbc4893f2dd0d2ba99bb2db70f4c.tar.bz2
toplev.h (NO_FRONT_END_DIAG, [...]): Define.
* toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define. (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG. cp: * decl.c (check_tag_decl): Name redeclared type in diagnostic. From-SVN: r84174
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index f698270..bde9ccf 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
+
+ * decl.c (check_tag_decl): Name redeclared type in diagnostic.
+
2004-07-06 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/3671
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 2e4e1af..5f3b901 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -3424,7 +3424,7 @@ check_tag_decl (cp_decl_specifier_seq *declspecs)
else if (declspecs->redefined_builtin_type)
{
if (!in_system_header)
- pedwarn ("redeclaration of C++ built-in type",
+ pedwarn ("redeclaration of C++ built-in type %qT",
declspecs->redefined_builtin_type);
return NULL_TREE;
}