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