diff options
author | Jason Merrill <jason@redhat.com> | 2021-04-08 01:03:28 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-04-08 07:58:40 -0400 |
commit | ac24fa46e449fbff0ff571951cfcc78b8488f6e7 (patch) | |
tree | dd9ddd62074c1c4746200d8dd58a3ffe66292122 /maintainer-scripts | |
parent | 2cd5333d16419f596d07a830bb3f1c40fa8a7b5c (diff) | |
download | gcc-ac24fa46e449fbff0ff571951cfcc78b8488f6e7.zip gcc-ac24fa46e449fbff0ff571951cfcc78b8488f6e7.tar.gz gcc-ac24fa46e449fbff0ff571951cfcc78b8488f6e7.tar.bz2 |
c++: improve specialization mismatch diagnostic [PR94529]
We were telling users they needed more template<> to specialize a member
template in a testcase with no member templates. Only produce that message
if we actually see a member template, and also always print the candidates.
gcc/cp/ChangeLog:
PR c++/94529
* pt.c (determine_specialization): Improve diagnostic.
gcc/testsuite/ChangeLog:
PR c++/94529
* g++.dg/template/mem-spec2.C: New test.
Diffstat (limited to 'maintainer-scripts')
0 files changed, 0 insertions, 0 deletions