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

            Bug ID: 82497
           Summary: valgrind error in get_pdt_constructor
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I did a build of gcc trunk revision 253416 fortran compiler.

For the fortran source code file gcc/testsuite/gfortran.dg/pdt_14.f03
I get the following results:

$  ~/gcc/results.253416.valgrind/bin/gfortran -c   ./gfortran.dg/pdt_14.f03
==11157== Invalid read of size 4
==11157==    at 0x73E336: get_pdt_constructor(gfc_expr*, gfc_constructor**,
gfc_symbol*) (resolve.c:1191)
==11157==    by 0x74CDBC: resolve_structure_cons(gfc_expr*, int)
(resolve.c:1246)
==11157==    by 0x754741: resolve_values(gfc_symbol*) (resolve.c:11386)
==11157==    by 0x768382: do_traverse_symtree(gfc_symtree*, void
(*)(gfc_symtree*), void (*)(gfc_symbol*)) (symbol.c:4061)

The bug seems to appear between revisions 251689 and 252962.

Reply via email to