[pushed] c++: using in diagnostics [PR102987]

2022-04-29 Thread Jason Merrill via Gcc-patches
The decl pretty-printing code wasn't looking at the flags parameter, so we were printing 'using' in the middle of an expression. Tested x86_64-pc-linux-gnu, applying to trunk. PR c++/102987 gcc/cp/ChangeLog: * error.cc (dump_decl) [USING_DECL]: Respect flags. gcc/testsuite/Chan

[pushed] c++: using in diagnostics [PR102987]

2022-04-14 Thread Jason Merrill via Gcc-patches
The expression pretty-printing code crashed on a location wrapper with no type, and didn't know what to do with a USING_DECL. Tested x86_64-pc-linux-gnu, applying to trunk. PR c++/102987 gcc/cp/ChangeLog: * error.cc (dump_expr): Handle USING_DECL. [VIEW_CONVERT_EXPR]: Ju