[Bug fortran/15032] [gfortran] gfc_conv_constant Assertion failure

Tobias dot Schlueter at physik dot uni-muenchen dot de gcc-bugzilla@gcc.gnu.org
Tue Apr 20 21:55:00 GMT 2004


------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de  2004-04-20 21:42 -------
Changing the third line to
  INTEGER, POINTER :: P ! no initialization

seemingly exposes memory corruption inside the compiler:
[tobi@marktplatz src]$ gcc/build/gcc/f951 t2.f90
 a

Execution times (seconds)
 final                 :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 (12%) wall
 TOTAL                 :   0.03             0.00             0.08
Extra diagnostic checks enabled; compiler may run slowly.
Configure with --disable-checking to disable checks.
[tobi@marktplatz src]$ gcc/build/gcc/f951 < t2.f90
Warning: Reading file  as free form
        .file   "<stdin>"
 a

f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[tobi@marktplatz src]$

i.e. only when reading from stdin the compiler segfaults. I'll attach valgrind
output for both cases.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15032



More information about the Gcc-bugs mailing list