[Bug other/116253] RFE: support for nested diagnostics
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 6 16:31:04 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116253
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>:
https://gcc.gnu.org/g:4f5b7f1b738f7206402d008e52718abfd78e2a07
commit r15-5986-g4f5b7f1b738f7206402d008e52718abfd78e2a07
Author: David Malcolm <dmalcolm@redhat.com>
Date: Fri Dec 6 11:29:54 2024 -0500
c++: consolidate location printing in error.cc [PR116253]
Consolidate the location-printing logic in cp/error.cc, as preliminary
work towards supporting nested diagnostics (PR other/116253).
gcc/cp/ChangeLog:
PR other/116253
* error.cc (print_location): Move to earlier in the file.
(print_instantiation_partial_context_line): Replace
location-printing logic with a call to print_location.
(print_instantiation_partial_context): Likewise, splitting up
pp_verbatim calls.
(maybe_print_constexpr_context): Likewise.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
More information about the Gcc-bugs
mailing list