https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128067
Bug ID: 128067
Summary: valgrind error in load_needed(pointer_info*)
(module.cc:5688)
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 65914
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65914&action=edit
f90 source code
The attached F90 code, from the fujitsu test suite on github,
compiled by a valgrinded gfortran, does this:
$ ~/gcc/results.20261020.valgrind/bin/gfortran -c -w
/home/dcb42/fujitsu/trunk/Fortran/0427/0427_0102.f90
==462567== Invalid read of size 1
==462567== at 0x524AD1: load_needed(pointer_info*) (module.cc:5688)
==462567== by 0x524A3D: load_needed(pointer_info*) (module.cc:5634)
==462567== by 0x52669B: read_module() (module.cc:6343)
$ ~/gcc/results.20261020.valgrind/bin/gfortran -v 2>&1 | grep exp
gcc version 17.0.0 20261019 (experimental) (708cc223b0f8b96c)
$
git blame says:
583713e32659 gcc/fortran/module.c (Tobias Burnus 2012-01-20
09:06:53 +0100 5688) if (only_flag && sym->name[0] != '_' && sym->name[1] !=
'_')