public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1099] c++: Add missing scope in typedef diagnostic [PR100763]
@ 2021-05-27 21:01 Jason Merrill
0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2021-05-27 21:01 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:27e906d5bb2e46e59fe4aa137317f3c8d49ecb44
commit r12-1099-g27e906d5bb2e46e59fe4aa137317f3c8d49ecb44
Author: Matthias Kretz <kretz@kde.org>
Date: Thu May 27 17:30:34 2021 +0200
c++: Add missing scope in typedef diagnostic [PR100763]
dump_type on 'const std::string' should not print 'const string' unless
TFF_UNQUALIFIED_NAME is requested.
gcc/cp/ChangeLog:
PR c++/100763
* error.c: Call dump_scope when printing a typedef.
Diff:
---
gcc/cp/error.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 3d5eebd4bcd..ae78b10c7b2 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -501,6 +501,8 @@ dump_type (cxx_pretty_printer *pp, tree t, int flags)
else
{
pp_cxx_cv_qualifier_seq (pp, t);
+ if (! (flags & TFF_UNQUALIFIED_NAME))
+ dump_scope (pp, CP_DECL_CONTEXT (decl), flags);
pp_cxx_tree_identifier (pp, TYPE_IDENTIFIER (t));
return;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-27 21:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-27 21:01 [gcc r12-1099] c++: Add missing scope in typedef diagnostic [PR100763] Jason Merrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).