https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80012
--- Comment #10 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:84ef4948609260266f365c63ce429476fd31262f commit r16-7604-g84ef4948609260266f365c63ce429476fd31262f Author: Gonzalo Silvalde Blanco <[email protected]> Date: Fri Feb 20 20:30:55 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]>
