Commit bea40d11 by Jason Merrill Committed by Jason Merrill

PR c++/79400 - confusing suggestion of 'noexcept'

	* parser.c (cp_parser_exception_specification_opt): Remove
	suggestion for deprecated dynamic exception-specification.

From-SVN: r245590
parent 4cd15931
2017-02-19 Jason Merrill <jason@redhat.com> 2017-02-19 Jason Merrill <jason@redhat.com>
PR c++/79400 - confusing suggestion of 'noexcept'
* parser.c (cp_parser_exception_specification_opt): Remove
suggestion for deprecated dynamic exception-specification.
PR c++/79470 - partial ordering with reference parameters PR c++/79470 - partial ordering with reference parameters
* pt.c (unify) [INDIRECT_REF]: Handle pack expansions. * pt.c (unify) [INDIRECT_REF]: Handle pack expansions.
......
...@@ -23926,8 +23926,8 @@ cp_parser_exception_specification_opt (cp_parser* parser) ...@@ -23926,8 +23926,8 @@ cp_parser_exception_specification_opt (cp_parser* parser)
} }
else if (cxx_dialect >= cxx11 && !in_system_header_at (loc)) else if (cxx_dialect >= cxx11 && !in_system_header_at (loc))
warning_at (loc, OPT_Wdeprecated, warning_at (loc, OPT_Wdeprecated,
"dynamic exception specifications are deprecated in C++11;" "dynamic exception specifications are deprecated in "
" use %<noexcept%> instead"); "C++11");
} }
/* In C++17, throw() is equivalent to noexcept (true). throw() /* In C++17, throw() is equivalent to noexcept (true). throw()
is deprecated in C++11 and above as well, but is still widely used, is deprecated in C++11 and above as well, but is still widely used,
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