fortran/3877: Test program ff90-1.f fails at -O0
Mon Jul 30 08:06:00 GMT 2001

>Number:         3877
>Category:       fortran
>Synopsis:       Test program ff90-1.f fails at -O0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 30 08:06:01 PDT 2001
>Originator:     David Billinghurst
>Release:        gcc-3.1 20010727
i686-pc-cygwin NT4/SP5 
The following test program fails on i686-pc-cygwin when compiled with "-O0 -ff90".  It passes at other optimization levels.

C Test compiler flags: -ff90
C Origin: David Billinghurst <>
C Read the g77 manual entry on CMPAMBIG
C { dg-do run }
C { dg-options "-ff90" }
      double complex z
      z = (2.0d0,1.0d0)
      call s(real(z))
      subroutine s(x)
      double precision x
      if ( abs(z-2.0d0) .gt. 1.0e-5 ) call abort

g77 -o a.out -ff90 -O0 ff90-1.f


More information about the Gcc-bugs mailing list