https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64986
Bug ID: 64986 Summary: class_to_type_4.f90: valgrind error: Invalid read/write of size 8 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: ubizjak at gmail dot com /ssd/uros/gcc-build/gcc/gfortran -B /ssd/uros/gcc-build/gcc -B /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libgfortran/ -L /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libgfortran/.libs/ -L /ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libquadmath/.libs/ -O2 -g class_to_type_4.f90 $ valgrind ./a.out ==991== Memcheck, a memory error detector ==991== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==991== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info ==991== Command: ./a.out ==991== ==991== Invalid read of size 8 ==991== at 0x401F8F: MAIN__ (class_to_type_4.f90:58) ==991== by 0x40076C: main (class_to_type_4.f90:63) ==991== Address 0x51afcb8 is 8 bytes inside a block of size 104 free'd ==991== at 0x4A07CE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==991== by 0x401F8E: MAIN__ (class_to_type_4.f90:58) ==991== by 0x40076C: main (class_to_type_4.f90:63) ==991== ==991== Invalid write of size 8 ==991== at 0x401FAB: MAIN__ (class_to_type_4.f90:58) ==991== by 0x40076C: main (class_to_type_4.f90:63) ==991== Address 0x51afcb8 is 8 bytes inside a block of size 104 free'd ==991== at 0x4A07CE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==991== by 0x401F8E: MAIN__ (class_to_type_4.f90:58) ==991== by 0x40076C: main (class_to_type_4.f90:63) ==991==