[Bug fortran/80012] FIXME in diagnostic "%s procedure at %L is already declared as %s procedure" from symbol.c
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 20 19:38:35 GMT 2026
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 <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:84ef4948609260266f365c63ce429476fd31262f
commit r16-7604-g84ef4948609260266f365c63ce429476fd31262f
Author: Gonzalo Silvalde Blanco <gonzalo.silvalde@gmail.com>
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 <gonzalo.silvalde@gmail.com>
More information about the Gcc-bugs
mailing list