Commit 41f071a
committed
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 <[email protected]>1 parent c0b21d1 commit 41f071a
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4104 | 4104 | | |
4105 | 4105 | | |
4106 | 4106 | | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
4107 | 4110 | | |
4108 | 4111 | | |
4109 | 4112 | | |
4110 | 4113 | | |
4111 | 4114 | | |
| 4115 | + | |
4112 | 4116 | | |
4113 | 4117 | | |
4114 | 4118 | | |
4115 | | - | |
4116 | 4119 | | |
4117 | 4120 | | |
4118 | 4121 | | |
| |||
4172 | 4175 | | |
4173 | 4176 | | |
4174 | 4177 | | |
4175 | | - | |
4176 | | - | |
4177 | | - | |
4178 | | - | |
| 4178 | + | |
4179 | 4179 | | |
4180 | 4180 | | |
4181 | 4181 | | |
| |||
0 commit comments