[Bug c++/93901] [10 Regression] noexcept specifier on ctor does not work with constexpr variable or expression since r10-4394
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 11 06:54:09 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93901
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
commit r10-7116-g481fcfe6fec156ca2a6baea4b623076e2eefa6a6
Author: Jason Merrill <jason@redhat.com>
Date: Tue Mar 10 17:31:33 2020 -0400
c++: Fix deferred noexcept on constructor [PR93901].
My change in r10-4394 to only update clones when we actually instantiate a
deferred noexcept-spec broke this because deferred parsing updates the
primary function but not the clones. For GCC 10, let's just revert it.
gcc/cp/ChangeLog
2020-03-10 Jason Merrill <jason@redhat.com>
PR c++/93901
* pt.c (maybe_instantiate_noexcept): Always update clones.
More information about the Gcc-bugs
mailing list