https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121966
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by David Malcolm <dmalc...@gcc.gnu.org>: https://gcc.gnu.org/g:41f071a64ff7027a98e6b6a7e3641156e3be70e0 commit r16-3941-g41f071a64ff7027a98e6b6a7e3641156e3be70e0 Author: David Malcolm <dmalc...@redhat.com> Date: Wed Sep 17 16:39:32 2025 -0400 c++: improve nesting in print_z_candidate [PR121966] Comment #2 of PR c++/121966 notes that the "inherited here" messages should be nested *within* the note they describe. Implemented by this patch, which also nests other notes emitted for rejection_reason within the first note of print_z_candidate. gcc/cp/ChangeLog: PR c++/121966 * call.cc (print_z_candidate): Consolidate instances of auto_diagnostic_nesting_level into one, above the "inherited here" message so that any such message is nested within the note, and any messages emitted due to the switch on rejection_reason are similarly nested within the note. Signed-off-by: David Malcolm <dmalc...@redhat.com>