https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102987
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:a0a2554d7c86c126de85fcbd5bd7e16dbb5a2693 commit r13-42-ga0a2554d7c86c126de85fcbd5bd7e16dbb5a2693 Author: Jason Merrill <ja...@redhat.com> Date: Thu Apr 14 17:35:35 2022 -0400 c++: using in diagnostics [PR102987] The decl pretty-printing code wasn't looking at the flags parameter, so we were printing 'using' in the middle of an expression. PR c++/102987 gcc/cp/ChangeLog: * error.cc (dump_decl) [USING_DECL]: Respect flags. gcc/testsuite/ChangeLog: * g++.dg/diagnostic/using1.C: Check pretty-printing.