[Bug fortran/58157] New: ICE on character function with len given by a PURE function
dcesari69 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Aug 14 15:19:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58157
Bug ID: 58157
Summary: ICE on character function with len given by a PURE
function
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcesari69 at gmail dot com
Created attachment 30655
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30655&action=edit
Fortran source for reproducing ICE
Hello, the attached simplified code contains a module with a CHARACTER function
whose results' length is given by another PURE function, which I assume is
correct Fortran 95 and I have used succesfully in other contexts. The module
compiles well, but as soon as the function is encountered in another piece of
code using the module, I get an ICE (+segfault):
====
[davide@localhost ~]$ rm -f *.mod; LANG= gfortran -c icetest.f90
icetest.f90: In function 'icetest':
icetest.f90:34:0: internal compiler error: Segmentation fault
tkey = strtofchar_chararr(key) ! ICE here!!!
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
====
It reminds somehow bug 55287:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55827, but that one is fixed in
4.9, while this remains. Same bug with older versions of gfortran.
This is my first bug submission to gcc, so please forgive any procedural
mistake. Thank you for your work, Davide
More information about the Gcc-bugs
mailing list