public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30902]  New: gfortran produces wrong result with code using generic interface block
@ 2007-02-21  6:37 deji_aking at yahoo dot ca
  2007-02-21  6:38 ` [Bug fortran/30902] " deji_aking at yahoo dot ca
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: deji_aking at yahoo dot ca @ 2007-02-21  6:37 UTC (permalink / raw)
  To: gcc-bugs

The attached test code using a generic interface block produces wrong output
when compiled with gfortran, and works fine with pgf90. Tested with gcc trunk
and gcc-4.2.0

>>
[deji@agape test4]$ ~/Desktop/gcc-trunk/bin/gfortran --version
GNU Fortran 95 (GCC) 4.3.0 20070220 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

[deji@agape test4]$ ~/Desktop/gcc-trunk/bin/gfortran -static test-interface.f90
-o test1
[deji@agape test4]$ ./test1
   180.0000      1.5000001E-06  1.6066065E+34
   180.0000      1.5000001E-06  4.5916347E-41
   180.0000      1.5000001E-06  1.6066065E+34
   180.0000      1.5000001E-06  4.5916347E-41
   180.0000      1.5000001E-06   0.000000    
   180.0000      1.5000001E-06   0.000000    
   180.0000      1.5000001E-06  5.8780253E-39
   180.0000      1.5000001E-06   0.000000    
   180.0000      1.5000001E-06  1.6066927E+34
   180.0000      1.5000001E-06  4.5916347E-41
   180.0000      1.5000001E-06  0.5104298    
[deji@agape test4]$ pgf90 test-interface.f90 -o test1
[deji@agape test4]$ ./test1
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
    180.0000       1.5000001E-06   0.5104298    
FORTRAN STOP
<<


-- 
           Summary: gfortran produces wrong result with code using generic
                    interface block
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: deji_aking at yahoo dot ca


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


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

end of thread, other threads:[~2007-02-21 15:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-21  6:37 [Bug fortran/30902] New: gfortran produces wrong result with code using generic interface block deji_aking at yahoo dot ca
2007-02-21  6:38 ` [Bug fortran/30902] " deji_aking at yahoo dot ca
2007-02-21  7:33 ` burnus at gcc dot gnu dot org
2007-02-21  8:51 ` pault at gcc dot gnu dot org
2007-02-21 15:14 ` deji_aking at yahoo dot ca

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).