c++: DWARF ICE with defaulted specialization [PR90674]
authorJason Merrill <jason@redhat.com>
Wed, 14 Apr 2021 00:32:13 +0000 (20:32 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 14 Apr 2021 00:32:13 +0000 (20:32 -0400)
commit0589be0c59767cf4cbb0ef0e7d918cf6aa3d606c
tree29da9c11552509842a37773dd6000c6f4defd7b3
parent006783f4b165dff25aae3697920fcf54754dddd4
c++: DWARF ICE with defaulted specialization [PR90674]

Here when we merged the specialization with the implicit instantiation
declaration, we wrongly kept the value of DECL_INITIALIZED_IN_CLASS_P from
the latter.

gcc/cp/ChangeLog:

PR c++/90674
* decl.c (duplicate_decls): Don't propagate
DECL_INITIALIZED_IN_CLASS_P to a specialization.

gcc/testsuite/ChangeLog:

PR c++/90674
* g++.dg/debug/defaulted1.C: New test.
gcc/cp/decl.c
gcc/testsuite/g++.dg/debug/defaulted1.C [new file with mode: 0644]