r269746 - in /trunk/gcc: cp/ChangeLog cp/pt.c t...
jason@gcc.gnu.org
jason@gcc.gnu.org
Sun Mar 17 20:07:00 GMT 2019
Author: jason
Date: Sun Mar 17 20:07:26 2019
New Revision: 269746
URL: https://gcc.gnu.org/viewcvs?rev=269746&root=gcc&view=rev
Log:
PR c++/89571 - ICE with ill-formed noexcept on constructor.
Earlier changes to defer instantiating a defaulted noexcept-specifier that
depends on yet-unparsed default member initializers broke this testcase,
where instantiation fails for another reason. In this case there's no
reason to defer and try again later, so let's not.
* pt.c (maybe_instantiate_noexcept): Only return false if defaulted.
(regenerate_decl_from_template): Use it for noexcept-specs.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/noexcept36.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
More information about the Gcc-cvs
mailing list