On 5/27/21 11:30 AM, Dr. Matthias Kretz wrote:
On Thursday, 27 May 2021 17:18:58 CEST Jason Merrill wrote:
On 5/26/21 5:27 PM, Matthias Kretz wrote:
From: Matthias Kretz <kr...@kde.org>

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.

+         if (! (flags & TFF_UNQUALIFIED_NAME))
+           dump_scope (pp, CP_DECL_CONTEXT (TYPE_NAME (t)), flags);

You can use "decl" instead of "TYPE_NAME (t)" here.

OK with that change.

Updated patch below.

Applied, thanks.

From: Matthias Kretz <kr...@kde.org>

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.
---
  gcc/cp/error.c | 2 ++
  1 file changed, 2 insertions(+)


Reply via email to