Commit 1a1f2bc5 by Jason Merrill Committed by Jason Merrill

error.c (dump_exception_spec): Print "noexcept" rather than "noexcept (true)".

	* error.c (dump_exception_spec): Print "noexcept" rather than
	"noexcept (true)".

From-SVN: r203726
parent 06ea1376
2013-10-16 Jason Merrill <jason@redhat.com>
* error.c (dump_exception_spec): Print "noexcept" rather than
"noexcept (true)".
Core 1591
* pt.c (unify_array_domain): Split out from unify.
(unify): Use it for list deduction, too.
......
......@@ -1595,13 +1595,16 @@ dump_exception_spec (cxx_pretty_printer *pp, tree t, int flags)
if (t && TREE_PURPOSE (t))
{
pp_cxx_ws_string (pp, "noexcept");
pp_cxx_whitespace (pp);
pp_cxx_left_paren (pp);
if (DEFERRED_NOEXCEPT_SPEC_P (t))
pp_cxx_ws_string (pp, "<uninstantiated>");
else
dump_expr (pp, TREE_PURPOSE (t), flags);
pp_cxx_right_paren (pp);
if (!integer_onep (TREE_PURPOSE (t)))
{
pp_cxx_whitespace (pp);
pp_cxx_left_paren (pp);
if (DEFERRED_NOEXCEPT_SPEC_P (t))
pp_cxx_ws_string (pp, "<uninstantiated>");
else
dump_expr (pp, TREE_PURPOSE (t), flags);
pp_cxx_right_paren (pp);
}
}
else if (t)
{
......
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