PR c++/89571 - ICE with ill-formed noexcept on constructor.
authorJason Merrill <jason@redhat.com>
Sun, 17 Mar 2019 20:07:26 +0000 (16:07 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 17 Mar 2019 20:07:26 +0000 (16:07 -0400)
commitbbee94aa67b316d188b0938e02a70def626a1dfd
tree18afb725972505b6173a0731a28c0470617f1b64
parentad0a3085d740347ec9db7ce15315d426d384110f
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.

From-SVN: r269746
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/noexcept36.C [new file with mode: 0644]