diff options
author | Patrick Palka <ppalka@redhat.com> | 2022-10-18 10:57:30 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2022-10-18 10:57:30 -0400 |
commit | 0101137c7c5d612c0624f9a2fd5198b302243f85 (patch) | |
tree | da94788a755b6440d4fe4174afcf9a115edd2529 /libgcc/libgcov-util.c | |
parent | c70b44f2c1adf9a9b1c64105d07f177e86139fca (diff) | |
download | gcc-0101137c7c5d612c0624f9a2fd5198b302243f85.zip gcc-0101137c7c5d612c0624f9a2fd5198b302243f85.tar.gz gcc-0101137c7c5d612c0624f9a2fd5198b302243f85.tar.bz2 |
c++ modules: stream non-trailing default targs [PR105045]
This fixes the below testcase in which we neglect to stream the default
argument for T only because the subsequent parameter U doesn't also have
a default argument.
PR c++/105045
gcc/cp/ChangeLog:
* module.cc (trees_out::tpl_parms_fini): Don't assume default
template arguments must be trailing.
(trees_in::tpl_parms_fini): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/modules/pr105045_a.C: New test.
* g++.dg/modules/pr105045_b.C: New test.
Diffstat (limited to 'libgcc/libgcov-util.c')
0 files changed, 0 insertions, 0 deletions