https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128344
Bug ID: 128344
Summary: [17 Regression] valgrind error in
gfc_compare_actual_formal(gfc_actual_arglist**, gfc_
formal_arglist*, int, int, bool, locus*)
(interface.cc:3495)
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 66061
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66061&action=edit
Fortran 90 source code
The attached F90 source code, from Fujitsu test suite on github,
does this with recent valgrinded gfortran:
$ ~/gcc/results.20261028.valgrind/bin/gfortran -c -w
/home/dcb42/fujitsu/trunk/Fortran/1245/1245_0012.f90
==1087429== Invalid read of size 4
==1087429== at 0x4E577F: gfc_compare_actual_formal(gfc_actual_arglist**,
gfc_
formal_arglist*, int, int, bool, locus*) (interface.cc:3495)
==1087429== by 0x4E8490: gfc_procedure_use(gfc_symbol*,
gfc_actual_arglist**,
locus*) (interface.cc:4739)
==1087429== by 0x5889D7: resolve_unknown_s (resolve.cc:3983)
==1087429== by 0x5889D7: resolve_call(gfc_code*) (resolve.cc:4330)
==1087429== by 0x574FBB: gfc_resolve_code(gfc_code*, gfc_namespace*)
(resolve
.cc:15060)
Compiler is
$ ~/gcc/results.20261028.valgrind/bin/gfortran -v
Using built-in specs.
COLLECT_GCC=/home/dcb42/gcc/results.20261028.valgrind/bin/gfortran
COLLECT_LTO_WRAPPER=/home/dcb42/gcc/results.20261028.valgrind/libexec/gcc/x86_64-pc-linux-gnu/17.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure
--prefix=/home/dcb42/gcc/results.20261028.valgrind --disable-bootstrap
--disable-doc --disable-fixincludes --disable-multilib
--with-pkgversion=8280b3ff920fc6b1 --enable-checking=valgrind
--enable-languages=c,c++,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20261028 (experimental) (8280b3ff920fc6b1)
$