diff options
author | Jason Merrill <jason@redhat.com> | 2024-02-12 21:00:53 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-02-13 11:15:36 -0500 |
commit | 19ac327de421fe05916e234e3450e6e1cc5c935c (patch) | |
tree | 53a6d971b7761e7fd606f45faff7dde9d752547c /gcc/expr.cc | |
parent | 7eac19be5f7dd92fcbcfe13f6edbb4f9bd45c15c (diff) | |
download | gcc-19ac327de421fe05916e234e3450e6e1cc5c935c.zip gcc-19ac327de421fe05916e234e3450e6e1cc5c935c.tar.gz gcc-19ac327de421fe05916e234e3450e6e1cc5c935c.tar.bz2 |
c++: variable partial spec redeclaration [PR113612]
If register_specialization finds a previous declaration and throws the new
one away, we shouldn't still add the new one to
DECL_TEMPLATE_SPECIALIZATIONS.
PR c++/113612
gcc/cp/ChangeLog:
* pt.cc (process_partial_specialization): Return early
on redeclaration.
gcc/testsuite/ChangeLog:
* g++.dg/cpp1y/var-templ85.C: New test.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions