aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgcleanup.cc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2024-12-17 13:44:22 -0500
committerMarek Polacek <polacek@redhat.com>2024-12-17 14:27:49 -0500
commit91733c095ee714c0b384153754c6327d5506cd19 (patch)
treefc061fb5e4973d093a1dd747cdd443ccfdcd15b5 /gcc/cfgcleanup.cc
parent7d6dc2130970ccf6555d4e9f977515c6c20f7d2f (diff)
downloadgcc-91733c095ee714c0b384153754c6327d5506cd19.zip
gcc-91733c095ee714c0b384153754c6327d5506cd19.tar.gz
gcc-91733c095ee714c0b384153754c6327d5506cd19.tar.bz2
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.
Diffstat (limited to 'gcc/cfgcleanup.cc')
0 files changed, 0 insertions, 0 deletions