https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89571

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
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

Reply via email to