diff options
author | lerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-13 10:03:45 +0000 |
---|---|---|
committer | lerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-13 10:03:45 +0000 |
commit | 09ee1565a09a4d181d15f58b17a3b84fd148e462 (patch) | |
tree | ddc6bf9ac16a1fa7342ae6e281bf7e709787c29c /gcc/cp | |
parent | 85fc0ad11d438d9d2ac6553176dc00f4ad06381d (diff) | |
download | gcc-09ee1565a09a4d181d15f58b17a3b84fd148e462.tar.gz |
* decl2.c (do_nonmember_using_decl): Replace using directive
with using declaration in the error message.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44847 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 29894a3a3fc..18b2c383055 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2001-08-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> + + * decl2.c (do_nonmember_using_decl): Replace using directive + with using declaration in the error message. + 2001-08-11 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> * pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 0a9e5ad817c..7be33681798 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -5022,7 +5022,7 @@ do_nonmember_using_decl (scope, name, oldval, oldtype, newval, newtype) *newtype = BINDING_TYPE (decls); if (oldtype && *newtype && oldtype != *newtype) { - cp_error ("using directive `%D' introduced ambiguous type `%T'", + cp_error ("using declaration `%D' introduced ambiguous type `%T'", name, oldtype); return; } |