]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: improve nesting in print_z_candidate [PR121966]
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 17 Sep 2025 20:39:32 +0000 (16:39 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 17 Sep 2025 20:39:32 +0000 (16:39 -0400)
commit41f071a64ff7027a98e6b6a7e3641156e3be70e0
tree90ee61f79d6ad376f7528ee595ea9813f04b4f16
parentc0b21d1f45ac6a249974982c1a7f7515efb78747
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 <dmalcolm@redhat.com>
gcc/cp/call.cc