This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
gfortran beta 8.0.0 20171127: a wrong program name gives an ICE.
- From: Jorge D'Elia <jdelia at intec dot unl dot edu dot ar>
- To: Gfortran List <fortran at gcc dot gnu dot org>
- Date: Sat, 2 Dec 2017 12:29:08 -0300 (ART)
- Subject: gfortran beta 8.0.0 20171127: a wrong program name gives an ICE.
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jorge D'Elia <jdelia at cimec dot unl dot edu dot ar>
Hi,
Below there is a simple test with a wrong program name
that causes an ICE using gfortan beta 8.0.0 20171127
Regards.
Jorge.
$ gfortran --version
GNU Fortran (GCC) 8.0.0 20171127 (experimental)
(snip)
$ cat a.f90
program real_kinds ! a wrong program name (collides with the reserved name real_kinds)
use ISO_FORTRAN_ENV
implicit none
end program real_kinds
$ gfortran -o a.out a.f90 && ./a.out
f951: internal compiler error: Segmentation fault
0xe1aa06 crash_signal
../../gcc/toplev.c:325
0x8fe4ea create_int_parameter_array
../../gcc/fortran/module.c:6586
0x8ff2ae use_iso_fortran_env_module
../../gcc/fortran/iso-fortran-env.def:106
0x905003 gfc_use_module
../../gcc/fortran/module.c:6938
0x90608c gfc_use_modules()
../../gcc/fortran/module.c:7178
0x9154ff use_modules
../../gcc/fortran/parse.c:114
0x9189f4 decode_statement
../../gcc/fortran/parse.c:332
0x91a36f next_free
../../gcc/fortran/parse.c:1225
0x91a36f next_statement
../../gcc/fortran/parse.c:1457
0x91bc9c parse_spec
../../gcc/fortran/parse.c:3835
0x91ea0a parse_progunit
../../gcc/fortran/parse.c:5638
0x91f59f gfc_parse_file()
../../gcc/fortran/parse.c:6178
0x96647b gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
#end
--