https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128165

            Bug ID: 128165
           Summary: valgrind error in
                    gcc/testsuite/gfortran.dg/defined_assignment_12.f90
           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: ---

>From gcc's own fortran testsuite, file
gcc/testsuite/gfortran.dg/defined_assignment_12.f90 seems to do this

$ ~/gcc/results.20261020.valgrind/bin/gfortran -c -w
gcc/testsuite/gfortran.dg/defined_assignment_12.f90
==287215== Invalid read of size 1
==287215==    at 0x575F34: generate_component_assignments(gfc_code**,
gfc_namespace*) (resolve.cc:13988)
==287215==    by 0x57578F: gfc_resolve_code(gfc_code*, gfc_namespace*)
(resolve.cc:14729)
==287215==    by 0x576F32: resolve_codes(gfc_namespace*) (resolve.cc:20967)
==287215==    by 0x576FE9: gfc_resolve(gfc_namespace*, gfc_association_list*)
[clone .part.0] (resolve.cc:21251)
==287215==    by 0x55FA33: resolve_all_program_units (parse.cc:7681)
==287215==    by 0x55FA33: gfc_parse_file() (parse.cc:7948)
==287215==    by 0x5D111F: gfc_be_parse_file() (f95-lang.cc:251)
==287215==    by 0xC82C39: compile_file() (toplev.cc:455)
==287215==    by 0x47D29E: do_compile (toplev.cc:2228)
==287215==    by 0x47D29E: toplev::main(int, char**) (toplev.cc:2396)
==287215==    by 0x47ECAA: main (main.cc:39)
==287215==  Address 0x1330f2fa is in a rw- anonymous segment
==287215== 

with a recent valgrinded version of gfortran.

Reply via email to