https://gcc.gnu.org/g:b619b4d7e7a5078d4fe8b1c4e89258ce4d21be4d
commit r16-1403-gb619b4d7e7a5078d4fe8b1c4e89258ce4d21be4d Author: David Malcolm <dmalc...@redhat.com> Date: Tue Jun 10 20:06:37 2025 -0400 gimple-ssa-warn-access: add missing auto_diagnostic_group Spotted whilst implementing nesting support in the experimental-html diagnostic sink. gcc/ChangeLog: * gimple-ssa-warn-access.cc (pass_waccess::maybe_check_dealloc_call): Add missing auto_diagnostic_group to nest the "returned from %qD" note within the warning. Signed-off-by: David Malcolm <dmalc...@redhat.com> Diff: --- gcc/gimple-ssa-warn-access.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/gimple-ssa-warn-access.cc b/gcc/gimple-ssa-warn-access.cc index 305b63567fea..0f4aff6b59b5 100644 --- a/gcc/gimple-ssa-warn-access.cc +++ b/gcc/gimple-ssa-warn-access.cc @@ -3767,6 +3767,7 @@ pass_waccess::maybe_check_dealloc_call (gcall *call) if (is_gimple_call (def_stmt)) { + auto_diagnostic_group d; bool warned = false; if (gimple_call_alloc_p (def_stmt)) {