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
This commit is contained in:
Jason Merrill 2013-10-16 17:58:29 -04:00 committed by Jason Merrill
parent 06ea137631
commit 1a1f2bc513
2 changed files with 13 additions and 7 deletions

View File

@ -1,5 +1,8 @@
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.

View File

@ -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)
{