public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/22327] New: Wrong code in array constructor
@ 2005-07-06 16:52 sfilippone at uniroma2 dot it
  2005-07-06 16:53 ` [Bug fortran/22327] " sfilippone at uniroma2 dot it
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sfilippone at uniroma2 dot it @ 2005-07-06 16:52 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [Bug fortran/22327] Wrong code in array constructor
  2005-07-06 16:52 [Bug fortran/22327] New: Wrong code in array constructor sfilippone at uniroma2 dot it
@ 2005-07-06 16:53 ` sfilippone at uniroma2 dot it
  2005-07-06 17:43 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sfilippone at uniroma2 dot it @ 2005-07-06 16:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sfilippone at uniroma2 dot it  2005-07-06 16:53 -------
Created an attachment (id=9214)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9214&action=view)
test case


-- 


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


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

* [Bug fortran/22327] Wrong code in array constructor
  2005-07-06 16:52 [Bug fortran/22327] New: Wrong code in array constructor sfilippone at uniroma2 dot it
  2005-07-06 16:53 ` [Bug fortran/22327] " sfilippone at uniroma2 dot it
@ 2005-07-06 17:43 ` pinskia at gcc dot gnu dot org
  2005-07-07  1:56 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-06 17:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-06 17:43 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-06 17:43:46
               date|                            |


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


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

* [Bug fortran/22327] Wrong code in array constructor
  2005-07-06 16:52 [Bug fortran/22327] New: Wrong code in array constructor sfilippone at uniroma2 dot it
  2005-07-06 16:53 ` [Bug fortran/22327] " sfilippone at uniroma2 dot it
  2005-07-06 17:43 ` pinskia at gcc dot gnu dot org
@ 2005-07-07  1:56 ` cvs-commit at gcc dot gnu dot org
  2005-07-07  8:33 ` [Bug fortran/22327] [4.0 only] " tkoenig at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-07  1:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-07 01:56 -------
Subject: Bug 22327

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	fengwang@gcc.gnu.org	2005-07-07 01:56:05

Modified files:
	gcc/fortran    : ChangeLog trans-array.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.dg: array_constructor_5.f90 

Log message:
	2005-07-07  Feng Wang  <fengwang@nudt.edu.cn>
	
	PR fortran/22327
	* trans-array.c (gfc_trans_array_constructor_value): Fix index of data.
	
	2005-07-07  Feng Wang  <fengwang@nudt.edu.cn>
	
	PR fortran/22327
	* gfortran.dg/array_constructor_5.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.484&r2=1.485
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&r1=1.51&r2=1.52
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5729&r2=1.5730
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/array_constructor_5.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug fortran/22327] [4.0 only] Wrong code in array constructor
  2005-07-06 16:52 [Bug fortran/22327] New: Wrong code in array constructor sfilippone at uniroma2 dot it
                   ` (2 preceding siblings ...)
  2005-07-07  1:56 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-07  8:33 ` tkoenig at gcc dot gnu dot org
  2005-07-07  9:43 ` fengwang at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-07-07  8:33 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Wrong code in array         |[4.0 only] Wrong code in
                   |constructor                 |array constructor
   Target Milestone|---                         |4.0.2


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


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

* [Bug fortran/22327] [4.0 only] Wrong code in array constructor
  2005-07-06 16:52 [Bug fortran/22327] New: Wrong code in array constructor sfilippone at uniroma2 dot it
                   ` (3 preceding siblings ...)
  2005-07-07  8:33 ` [Bug fortran/22327] [4.0 only] " tkoenig at gcc dot gnu dot org
@ 2005-07-07  9:43 ` fengwang at gcc dot gnu dot org
  2005-07-10 15:13 ` cvs-commit at gcc dot gnu dot org
  2005-07-10 18:26 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: fengwang at gcc dot gnu dot org @ 2005-07-07  9:43 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |fengwang at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug fortran/22327] [4.0 only] Wrong code in array constructor
  2005-07-06 16:52 [Bug fortran/22327] New: Wrong code in array constructor sfilippone at uniroma2 dot it
                   ` (4 preceding siblings ...)
  2005-07-07  9:43 ` fengwang at gcc dot gnu dot org
@ 2005-07-10 15:13 ` cvs-commit at gcc dot gnu dot org
  2005-07-10 18:26 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-10 15:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-10 13:26 -------
Subject: Bug 22327

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	fengwang@gcc.gnu.org	2005-07-10 13:26:08

Modified files:
	gcc/fortran    : ChangeLog simplify.c trans-array.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.dg: simplify_modulo.f90 
	                           array_constructor_5.f90 

Log message:
	2005-07-10  Feng Wang  <fengwang@nudt.edu.cn>
	
	Backport from the mainline:
	2005-07-07  Feng Wang  <fengwang@nudt.edu.cn>
	PR fortran/22327
	* trans-array.c (gfc_trans_array_constructor_value): Fix index of data.
	
	2005-06-24  Feng Wang  <fengwang@nudt.edu.cn>
	* simplify.c (gfc_simplify_modulo): Don't clear before get result.
	
	2005-07-10  Feng Wang  <fengwang@nudt.edu.cn>
	
	* gfortran.dg/simplify_modulo.f90: New.
	
	PR fortran/22327
	* gfortran.dg/array_constructor_5.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.83&r2=1.335.2.84
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/simplify.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.19.2.2&r2=1.19.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.39.2.6&r2=1.39.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.260&r2=1.5084.2.261
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/simplify_modulo.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.8.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/array_constructor_5.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug fortran/22327] [4.0 only] Wrong code in array constructor
  2005-07-06 16:52 [Bug fortran/22327] New: Wrong code in array constructor sfilippone at uniroma2 dot it
                   ` (5 preceding siblings ...)
  2005-07-10 15:13 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-10 18:26 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-10 18:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-10 18:22 -------
Fixed in 4.0.2.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2005-07-10 18:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-06 16:52 [Bug fortran/22327] New: Wrong code in array constructor sfilippone at uniroma2 dot it
2005-07-06 16:53 ` [Bug fortran/22327] " sfilippone at uniroma2 dot it
2005-07-06 17:43 ` pinskia at gcc dot gnu dot org
2005-07-07  1:56 ` cvs-commit at gcc dot gnu dot org
2005-07-07  8:33 ` [Bug fortran/22327] [4.0 only] " tkoenig at gcc dot gnu dot org
2005-07-07  9:43 ` fengwang at gcc dot gnu dot org
2005-07-10 15:13 ` cvs-commit at gcc dot gnu dot org
2005-07-10 18:26 ` pinskia at gcc dot gnu dot 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).