This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55827] New: ICE with multiple fortran modules and character lenght determined by an interfaced pure function
- From: "bugs at stellardeath dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 28 Dec 2012 21:08:11 +0000
- Subject: [Bug fortran/55827] New: ICE with multiple fortran modules and character lenght determined by an interfaced pure function
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55827
Bug #: 55827
Summary: ICE with multiple fortran modules and character lenght
determined by an interfaced pure function
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: bugs@stellardeath.org
Created attachment 29062
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29062
Minimal testcase (25 lines)
I hit this when trying to find a nice way to pass strings between Fortran and
C, it is however unrelated to any C-interfacing - the minimal testcase (25
lines) that is attached did not need this to trigger the ICE.
I could not reduce the testcase further - if I merge the first two modules I
get a sucessful compilation, also if I remove the line with the unnecessary
"use" in the final subroutine in the last module.
It seems to be related to the len= argument in the
character(len=strlen(handle))
statements, when I substitute "strlen(handle)" with a number I also get a
sucessful compilation.