diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-23 02:58:46 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-23 02:58:46 +0000 |
commit | d1e981b1a7b80bd42398283dfba7bd11ab760352 (patch) | |
tree | 284f1f8b157dee2010417f98eb94317715e97b9a /gcc/cp/parser.c | |
parent | 4152ab5575bd65f42a8d3ad4d1006a2ec1272b12 (diff) | |
download | gcc-d1e981b1a7b80bd42398283dfba7bd11ab760352.tar.gz |
* error.c (dump_expr): Handle dependent names that designate types.
* cxx-pretty-print.c (pp_cxx_unqualified_id): Handle TYPENAME_TYPE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123148 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 2cf6f8a71d8..41e7b52f980 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -2054,26 +2054,26 @@ cp_parser_name_lookup_error (cp_parser* parser, if (decl == error_mark_node) { if (parser->scope && parser->scope != global_namespace) - error ("%<%D::%D%> has not been declared", + error ("%<%E::%E%> has not been declared", parser->scope, name); else if (parser->scope == global_namespace) - error ("%<::%D%> has not been declared", name); + error ("%<::%E%> has not been declared", name); else if (parser->object_scope && !CLASS_TYPE_P (parser->object_scope)) - error ("request for member %qD in non-class type %qT", + error ("request for member %qE in non-class type %qT", name, parser->object_scope); else if (parser->object_scope) - error ("%<%T::%D%> has not been declared", + error ("%<%T::%E%> has not been declared", parser->object_scope, name); else - error ("%qD has not been declared", name); + error ("%qE has not been declared", name); } else if (parser->scope && parser->scope != global_namespace) - error ("%<%D::%D%> %s", parser->scope, name, desired); + error ("%<%E::%E%> %s", parser->scope, name, desired); else if (parser->scope == global_namespace) - error ("%<::%D%> %s", name, desired); + error ("%<::%E%> %s", name, desired); else - error ("%qD %s", name, desired); + error ("%qE %s", name, desired); } /* If we are parsing tentatively, remember that an error has occurred @@ -12176,7 +12176,7 @@ cp_parser_direct_declarator (cp_parser* parser, /*only_current_p=*/false); /* If that failed, the declarator is invalid. */ if (type == error_mark_node) - error ("%<%T::%D%> is not a type", + error ("%<%T::%E%> is not a type", TYPE_CONTEXT (qualifying_scope), TYPE_IDENTIFIER (qualifying_scope)); qualifying_scope = type; |