This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/22327] New: Wrong code in array constructor
- From: "sfilippone at uniroma2 dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2005 16:52:46 -0000
- Subject: [Bug fortran/22327] New: Wrong code in array constructor
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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