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: unassig...@gcc.gnu.org ReportedBy: b...@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.