public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50564] New: [4.7 Regression] Front-end optimization - ICE with FORALL
@ 2011-09-29  8:21 burnus at gcc dot gnu.org
  2011-09-29  8:35 ` [Bug fortran/50564] " burnus at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-09-29  8:21 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50564
           Summary: [4.7 Regression] Front-end optimization - ICE with
                    FORALL
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: abenson@caltech.edu, tkoenig@gcc.gnu.org


Reported by Andrew Benson at
http://gcc.gnu.org/ml/fortran/2011-09/msg00154.html

With -ffrontend-optimize, gfortran ICEs with
  internal compiler error: in gfc_trans_forall_1, at fortran/trans-stmt.c:3796

Workaround: -fno-frontend-optimize
Said to be a 4.7 regression.

Test case:

program test
  implicit none
  double precision, allocatable, dimension(:) :: timeSteps
  integer                                     :: iTime
  double precision                            :: ratio
  forall(iTime=1:2)
     timeSteps(iTime)=ratio**(dble(iTime)-0.5d0)-ratio**(dble(iTime)-1.5d0)
  end forall
end program test


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-10-10 19:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-29  8:21 [Bug fortran/50564] New: [4.7 Regression] Front-end optimization - ICE with FORALL burnus at gcc dot gnu.org
2011-09-29  8:35 ` [Bug fortran/50564] " burnus at gcc dot gnu.org
2011-09-29 13:10 ` burnus at gcc dot gnu.org
2011-09-30  6:01 ` tkoenig at gcc dot gnu.org
2011-09-30  9:30 ` burnus at gcc dot gnu.org
2011-10-08  9:31 ` tkoenig at gcc dot gnu.org
2011-10-08 21:41 ` tkoenig at gcc dot gnu.org
2011-10-09 16:01 ` burnus at gcc dot gnu.org
2011-10-09 16:15 ` burnus at gcc dot gnu.org
2011-10-09 18:11 ` tkoenig at netcologne dot de
2011-10-10  9:24 ` burnus at gcc dot gnu.org
2011-10-10 14:28 ` rguenth at gcc dot gnu.org
2011-10-10 18:57 ` tkoenig at netcologne dot de
2011-10-10 19:09 ` tkoenig at gcc dot gnu.org
2011-10-10 19:15 ` tkoenig at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).