Testcase:
subroutine option_stopwatch_s(default_clock)
character, intent(in) :: default_clock
   call option_stopwatch_a((/default_clock/))
end subroutine option_stopwatch_s

------
pc64:~> ~/checkin/bin/gfortran t.f90 -fdump-tree-all
t.f90: In function ‘option_stopwatch_s’:
t.f90:3: internal compiler error: in gimplify_expr, at gimplify.c:4658
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
------
In 4.0.3, we ICE differently with:
t.f90:1: internal compiler error: in gfc_build_indirect_ref, at
fortran/trans.c:291
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


Related to 23634 as it was reduced from that PR (though only to find this bug)


-- 
           Summary: ICE in gimplify_expr with chacter type
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
 BugsThisDependsOn: 23634
OtherBugsDependingO 19276
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25619


Reply via email to