Commit c6ecc13a by Paolo Carlini Committed by Paolo Carlini

re PR c++/89571 (ICE in nothrow_spec_p, at cp/except.c:1238)

/cp
2019-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/89571
	* method.c (after_nsdmi_defaulted_late_checks): Avoid passing
	error_mark_node to comp_except_specs.

/testsuite
2019-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/89571
	* g++.dg/cpp0x/noexcept37.C: New.

From-SVN: r269832
parent 2aecb44b
2019-03-21 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/89571
* method.c (after_nsdmi_defaulted_late_checks): Avoid passing
error_mark_node to comp_except_specs.
2019-03-20 Jason Merrill <jason@redhat.com>
PR c++/87480 - decltype of member access in default template arg
......
......@@ -2274,6 +2274,9 @@ after_nsdmi_defaulted_late_checks (tree t)
continue;
tree eh_spec = get_defaulted_eh_spec (fn);
if (eh_spec == error_mark_node)
continue;
if (!comp_except_specs (TYPE_RAISES_EXCEPTIONS (TREE_TYPE (fn)),
eh_spec, ce_normal))
DECL_DELETED_FN (fn) = true;
......
2019-03-21 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/89571
* g++.dg/cpp0x/noexcept37.C: New.
2019-03-21 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/89017
......
// PR c++/89571
// { dg-do compile { target c++11 } }
struct A
{
int i = ; // { dg-error "expected" }
A() noexcept = default;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment