re PR c++/89914 (ICE in nothrow_spec_p, at cp/except.c:1238)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 8 Apr 2019 08:13:50 +0000 (08:13 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 8 Apr 2019 08:13:50 +0000 (08:13 +0000)
commit8d2318ffa323564735c39a4de251df2dfcceb346
treeae97a7f0ad9ba0b6de268c934b2817fa5b9cf23c
parent66d8ee9ce0245c8c60af96365b3072a9e25729e6
re PR c++/89914 (ICE in nothrow_spec_p, at cp/except.c:1238)

/cp
2019-04-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/89914
* semantics.c (trait_expr_value): Don't use TYPE_NOTHROW_P
when maybe_instantiate_noexcept fails.
(classtype_has_nothrow_assign_or_copy_p): Likewise.
* method.c (implicitly_declare_fn): Avoid passing error_mark_node
to build_exception_variant.

/testsuite
2019-04-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/89914
* g++.dg/ext/has_nothrow_constructor-3.C: New.

From-SVN: r270201
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/has_nothrow_constructor-3.C [new file with mode: 0644]