c++: Cross-module partial specialiations [PR 99480]
Nathan Sidwell
nathan@acm.org
Mon Mar 22 19:39:37 GMT 2021
We were not correctly handling cross-module redeclarations of
partial-specializations. They have their own TEMPLATE_DECL, which we
need to locate. I had a FIXME there about this case. Guess it's fixed now.
PR 99480
gcc/cp/
* module.cc (depset::hash::make_dependency): Propagate flags for
partial specialization.
(module_may_redeclare): Handle partial specialization.
gcc/testsuite/
* g++.dg/modules/pr99480_1.H: New.
* g++.dg/modules/pr99480_b.H: New.
--
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr99480.diff
Type: text/x-patch
Size: 2392 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210322/e4084150/attachment-0001.bin>
More information about the Gcc-patches
mailing list