This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/22327] New: Wrong code in array constructor


This is what I get from the attached test case, and it is clearly wrong (data
gets copied from uninitialized memory). 
See also http://gcc.gnu.org/ml/fortran/2005-07/msg00059.html 

[sfilippo@localhost TEMP]$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1-20050702/configure --prefix=/usr/local/gfortran
Thread model: posix
gcc version 4.1.0 20050702 (experimental)
[sfilippo@localhost TEMP]$ gfortran -o test3 test3.f90
[sfilippo@localhost TEMP]$ ./test3 
 Test         9999           2           3           4           5     1151552
[sfilippo@localhost TEMP]$ ./test3 
 Test         9999           2           3           4           5    15147584
[sfilippo@localhost TEMP]$ ./test3 
 Test         9999           2           3           4           5     8172096

-- 
           Summary: Wrong code in array constructor
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sfilippone at uniroma2 dot it
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]