aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2017-02-20 01:05:45 -0500
committerJason Merrill <jason@gcc.gnu.org>2017-02-20 01:05:45 -0500
commitbea40d1191260ebd68cbe1f940e1a5b7e1efa09d (patch)
treed81d923635f1122cb702a7b4d39b18d4bae93cba
parent4cd159317cb88496122bd3999a04c56c513bd915 (diff)
downloadgcc-bea40d1191260ebd68cbe1f940e1a5b7e1efa09d.zip
gcc-bea40d1191260ebd68cbe1f940e1a5b7e1efa09d.tar.gz
gcc-bea40d1191260ebd68cbe1f940e1a5b7e1efa09d.tar.bz2
PR c++/79400 - confusing suggestion of 'noexcept'
* parser.c (cp_parser_exception_specification_opt): Remove suggestion for deprecated dynamic exception-specification. From-SVN: r245590
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/parser.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 033831d..ceef9db 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,9 @@
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
* pt.c (unify) [INDIRECT_REF]: Handle pack expansions.
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 4656b4f..72597f3 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -23926,8 +23926,8 @@ cp_parser_exception_specification_opt (cp_parser* parser)
}
else if (cxx_dialect >= cxx11 && !in_system_header_at (loc))
warning_at (loc, OPT_Wdeprecated,
- "dynamic exception specifications are deprecated in C++11;"
- " use %<noexcept%> instead");
+ "dynamic exception specifications are deprecated in "
+ "C++11");
}
/* In C++17, throw() is equivalent to noexcept (true). throw()
is deprecated in C++11 and above as well, but is still widely used,