c++: Add auto_diagnostic_group to check_handlers_1.
This was missing. gcc/cp/ChangeLog: * except.c (check_handlers_1): Add auto_diagnostic_group.
This commit is contained in:
parent
e6fd02cc6d
commit
44e1f63e20
1 changed files with 1 additions and 0 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue