diff options
author | Marek Polacek <polacek@redhat.com> | 2020-11-05 18:23:56 -0500 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2020-11-05 18:24:19 -0500 |
commit | 44e1f63e20fec07e3a10d8e75336cfda64c911bf (patch) | |
tree | 8d3902db5b5767e3a617443f7f670b9d60427c4b /gcc | |
parent | e6fd02cc6d874c523466250a1cb724e0c7af9d75 (diff) | |
download | gcc-44e1f63e20fec07e3a10d8e75336cfda64c911bf.zip gcc-44e1f63e20fec07e3a10d8e75336cfda64c911bf.tar.gz gcc-44e1f63e20fec07e3a10d8e75336cfda64c911bf.tar.bz2 |
c++: Add auto_diagnostic_group to check_handlers_1.
This was missing.
gcc/cp/ChangeLog:
* except.c (check_handlers_1): Add auto_diagnostic_group.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/except.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c index 985206f..b72a28c 100644 --- a/gcc/cp/except.c +++ b/gcc/cp/except.c @@ -975,6 +975,7 @@ check_handlers_1 (tree master, tree_stmt_iterator i) tree handler = tsi_stmt (i); if (TREE_TYPE (handler) && can_convert_eh (type, TREE_TYPE (handler))) { + auto_diagnostic_group d; if (warning_at (EXPR_LOCATION (handler), OPT_Wexceptions, "exception of type %qT will be caught by earlier " "handler", TREE_TYPE (handler))) |