[Bug fortran/81499] internal compiler error when compiling gfortran code with user-defined derived type i/o
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Wed Jul 26 10:16:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81499
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-07-26
CC| |jvdelisle at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed. If I compile the code with an instrumented compiler, I get
ASAN:DEADLYSIGNAL
=================================================================
==6481==ERROR: AddressSanitizer: stack-overflow on address 0x7fff5bc00ff8 (pc
0x0001002be1d1 bp 0x7fff5bc01010 sp 0x7fff5bc01000 T0)
#0 0x1002be1d0 in derived_inaccessible(gfc_symbol*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.6.0/8.0.0/f951+0x1002be1d0)
#1 0x1002be4d3 in derived_inaccessible(gfc_symbol*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.6.0/8.0.0/f951+0x1002be4d3)
#2 0x1002be4d3 in derived_inaccessible(gfc_symbol*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.6.0/8.0.0/f951+0x1002be4d3)
#3 0x1002be4d3 in derived_inaccessible(gfc_symbol*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.6.0/8.0.0/f951+0x1002be4d3)
#4 0x1002be4d3 in derived_inaccessible(gfc_symbol*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.6.0/8.0.0/f951+0x1002be4d3)
#5 0x1002be4d3 in derived_inaccessible(gfc_symbol*)
(/opt/gcc/gcc8g/libexec/gcc/x86_64-apple-darwin16.6.0/8.0.0/f951+0x1002be4d3)
...
The code compiles and gives the expected results at run time if remove the line
(circular TYPEs)
type (tape_type), pointer :: ref => null() ! if this line is
commented out, the code will compile
Likely related to pr46244.
More information about the Gcc-bugs
mailing list