https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118073
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:91733c095ee714c0b384153754c6327d5506cd19 commit r15-6313-g91733c095ee714c0b384153754c6327d5506cd19 Author: Marek Polacek <pola...@redhat.com> Date: Tue Dec 17 13:44:22 2024 -0500 c++: print NONTYPE_ARGUMENT_PACK [PR118073] This PR points out that we're not pretty-printing NONTYPE_ARGUMENT_PACK so the compiler emits the ugly: 'nontype_argument_pack' not supported by dump_expr<expression error>> Fixed thus. I've wrapped the elements of the pack in { } because that's what cxx_pretty_printer::expression does. PR c++/118073 gcc/cp/ChangeLog: * error.cc (dump_expr) <case NONTYPE_ARGUMENT_PACK>: New case. gcc/testsuite/ChangeLog: * g++.dg/diagnostic/arg-pack1.C: New test.