* [Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
@ 2005-04-14 22:35 ` nicolas dot girard at nerim dot net
2005-04-14 23:33 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: nicolas dot girard at nerim dot net @ 2005-04-14 22:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nicolas dot girard at nerim dot net 2005-04-14 22:35 -------
Created an attachment (id=8637)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8637&action=view)
Assembler file generated using the -save-temps option
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
2005-04-14 22:35 ` [Bug fortran/21034] " nicolas dot girard at nerim dot net
@ 2005-04-14 23:33 ` pinskia at gcc dot gnu dot org
2005-04-15 6:09 ` nicolas dot girard at nerim dot net
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-14 23:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-14 23:33 -------
Could you attach the .f90 file?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
2005-04-14 22:35 ` [Bug fortran/21034] " nicolas dot girard at nerim dot net
2005-04-14 23:33 ` pinskia at gcc dot gnu dot org
@ 2005-04-15 6:09 ` nicolas dot girard at nerim dot net
2005-04-15 6:10 ` nicolas dot girard at nerim dot net
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: nicolas dot girard at nerim dot net @ 2005-04-15 6:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nicolas dot girard at nerim dot net 2005-04-15 06:09 -------
Sure.
Actually the main file is a .F file. The tgz I'm about to attach contain the
following files:
- main.F : main file
- guess.h params.h pinch_complet.h prec.h: included by the preprocessor
- routines.h.ok : when renamed to routines.h, the program compiles fine
- routines.h.bug: when renamed to routines.h, causes the bug to appear
"$ diff routines.*" gives:
408c408
< subroutine solution(n,xf,fg,h1,h2,beta,pas,tolerance,nmax,xav)
---
> subroutine solution(xf,fg,h1,h2,beta,pas,tolerance,nmax,xav)
438c438
< parameter (n1=5,n2=5,ndims=10)
---
> parameter (n1=5,n2=5,n=1024,ndims=10)
All I did was to add "n" as a new parameter of the solution() subroutine ; here
the call to solution() is unchanged but adding a variable corresponding to n in
the function call changes nothing, the bug still appears.
Thanks again,
cheers
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
` (2 preceding siblings ...)
2005-04-15 6:09 ` nicolas dot girard at nerim dot net
@ 2005-04-15 6:10 ` nicolas dot girard at nerim dot net
2005-04-15 8:30 ` fxcoudert at gcc dot gnu dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: nicolas dot girard at nerim dot net @ 2005-04-15 6:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nicolas dot girard at nerim dot net 2005-04-15 06:10 -------
Created an attachment (id=8639)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8639&action=view)
Source files
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
` (3 preceding siblings ...)
2005-04-15 6:10 ` nicolas dot girard at nerim dot net
@ 2005-04-15 8:30 ` fxcoudert at gcc dot gnu dot org
2005-06-22 15:34 ` cvs-commit at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-04-15 8:30 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-15 08:30 -------
Reduced testcase is:
$ cat pr21034.f
subroutine solution(n)
implicit none
integer n
real dte(n)
save
print *, dte
end
$ gfortran -c pr21034.f
pr21034.f: In function solution:
pr21034.f:4: internal compiler error: in gfc_trans_auto_array_allocation, at
fortran/trans-array.c:3036
Please note that if "print *,dte" is replaced by any other statement using dte
(such as "dte(:) = 0" or "call anothersub(dte)"), the bug is the same. Removing
this line, removing the "save" statement or make n a parameter lead to correct
compilation.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-04-15 08:30:11
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
` (4 preceding siblings ...)
2005-04-15 8:30 ` fxcoudert at gcc dot gnu dot org
@ 2005-06-22 15:34 ` cvs-commit at gcc dot gnu dot org
2005-06-22 16:00 ` pbrook at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-22 15:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-22 15:34 -------
Subject: Bug 21034
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pbrook@gcc.gnu.org 2005-06-22 15:34:02
Modified files:
gcc/fortran : ChangeLog symbol.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: auto_save_1.f90
Log message:
2005-06-22 Paul Brook <paul@codesourcery.com>
PR fortran/21034
* symbol.c (gfc_is_var_automatic): New function.
(save_symbol): Use it.
testsuite/
* gfortran.dg/auto_save_1.f90: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.470&r2=1.471
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/symbol.c.diff?cvsroot=gcc&r1=1.29&r2=1.30
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5670&r2=1.5671
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/auto_save_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
` (5 preceding siblings ...)
2005-06-22 15:34 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-22 16:00 ` pbrook at gcc dot gnu dot org
2005-06-22 16:03 ` fxcoudert at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2005-06-22 16:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pbrook at gcc dot gnu dot org 2005-06-22 16:00 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
` (6 preceding siblings ...)
2005-06-22 16:00 ` pbrook at gcc dot gnu dot org
@ 2005-06-22 16:03 ` fxcoudert at gcc dot gnu dot org
2005-06-22 18:51 ` pbrook at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-06-22 16:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-06-22 16:03 -------
What about 4.0? Right now, we've been trying to keep all patches applied on both
branches. Doesn't this bug happen on 4.0 too?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pbrook at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
` (7 preceding siblings ...)
2005-06-22 16:03 ` fxcoudert at gcc dot gnu dot org
@ 2005-06-22 18:51 ` pbrook at gcc dot gnu dot org
2005-06-22 18:51 ` pbrook at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2005-06-22 18:51 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pbrook at gcc dot gnu dot
|dot org |org
Status|REOPENED |ASSIGNED
Last reconfirmed|2005-04-15 08:30:11 |2005-06-22 18:51:33
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
` (8 preceding siblings ...)
2005-06-22 18:51 ` pbrook at gcc dot gnu dot org
@ 2005-06-22 18:51 ` pbrook at gcc dot gnu dot org
2005-06-22 18:52 ` [Bug fortran/21034] [4.0 only] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2005-06-22 18:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pbrook at gcc dot gnu dot org 2005-06-22 18:51 -------
Reopening until 4.0 is unforzen and the patch applied there
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] [4.0 only] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
` (9 preceding siblings ...)
2005-06-22 18:51 ` pbrook at gcc dot gnu dot org
@ 2005-06-22 18:52 ` pinskia at gcc dot gnu dot org
2005-07-15 15:22 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-22 18:52 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Summary|internal compiler error: in |[4.0 only] internal compiler
|gfc_trans_auto_array_allocat|error: in
|ion, at fortran/trans- |gfc_trans_auto_array_allocat
|array.c:3036 |ion, at fortran/trans-
| |array.c:3036
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] [4.0 only] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
` (10 preceding siblings ...)
2005-06-22 18:52 ` [Bug fortran/21034] [4.0 only] " pinskia at gcc dot gnu dot org
@ 2005-07-15 15:22 ` cvs-commit at gcc dot gnu dot org
2005-07-15 15:29 ` pbrook at gcc dot gnu dot org
2005-07-27 12:52 ` reichelt at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-15 15:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-15 15:21 -------
Subject: Bug 21034
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: pbrook@gcc.gnu.org 2005-07-15 15:21:21
Modified files:
gcc/fortran : ChangeLog symbol.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: auto_save_1.f90
Log message:
2005-07-15 Paul Brook <paul@codesourcery.com>
Backport form mainline.
2005-06-22 Paul Brook <paul@codesourcery.com>
PR fortran/21034
* symbol.c (gfc_is_var_automatic): New function.
(save_symbol): Use it.
testsuite/
* gfortran.dg/auto_save_1.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.90&r2=1.335.2.91
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/symbol.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.26.2.1&r2=1.26.2.2
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.277&r2=1.5084.2.278
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/auto_save_1.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.8.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] [4.0 only] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
` (11 preceding siblings ...)
2005-07-15 15:22 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-15 15:29 ` pbrook at gcc dot gnu dot org
2005-07-27 12:52 ` reichelt at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2005-07-15 15:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pbrook at gcc dot gnu dot org 2005-07-15 15:22 -------
Fix applied to 4.0-branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug fortran/21034] [4.0 only] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
2005-04-14 22:33 [Bug fortran/21034] New: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036 nicolas dot girard at nerim dot net
` (12 preceding siblings ...)
2005-07-15 15:29 ` pbrook at gcc dot gnu dot org
@ 2005-07-27 12:52 ` reichelt at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-27 12:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-27 12:50 -------
*** Bug 23091 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |valera dot veryazov at
| |teokem dot lu dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
^ permalink raw reply [flat|nested] 15+ messages in thread