http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56047
Bug #: 56047 Summary: [4.6 Regression] ICE in in gfc_conv_expr_op Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: juergen.reu...@desy.de Created attachment 29220 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29220 File that triggers the ICE I get the following ICE: gfortran -c process_libraries.f90 process_libraries.f90: In function ‘process_variant_def_allocate_by_name’: process_libraries.f90:47:0: internal compiler error: in gfc_conv_expr_op, at fortran/trans-expr.c:2469 if (template%type_string () == name) then ^ process_libraries.f90:47:0: internal compiler error: Abort trap: 6 gfortran: internal compiler error: Abort trap: 6 (program f951) In the code attached, iso_varying_string.f90 is the standard implementation: http://www.fortran.com/iso_varying_string.f95