https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80012
--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <[email protected]>: https://gcc.gnu.org/g:82cc94e5fb69d1c45a386f83798251de5bff9339 commit r16-7653-g82cc94e5fb69d1c45a386f83798251de5bff9339 Author: Gonzalo Silvalde Blanco <[email protected]> Date: Mon Feb 23 20:53:16 2026 +0100 Fortran: Fix diagnostic for ambiguous pointer function assignment [PR80012] The error message for an ambiguous pointer function assignment contained a FIXME and an embedded newline that the diagnostics printer does not handle. Split the single gfc_error call into a gfc_error for the main diagnostic and an inform note for the F2008 explanation, wrapped in an auto_diagnostic_group. PR fortran/80012 gcc/fortran/ChangeLog: * symbol.cc (gfc_add_procedure): Split error into gfc_error and inform using auto_diagnostic_group. gcc/testsuite/ChangeLog: * gfortran.dg/pr80012.f90: New test. Signed-off-by: Gonzalo Silvalde Blanco <[email protected]>
