public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/19654] compilation crashes when variable is too large instead of showing error
[not found] <bug-19654-9126@http.gcc.gnu.org/bugzilla/>
@ 2006-01-07 5:43 ` pinskia at gcc dot gnu dot org
2006-06-17 4:14 ` jvdelisle at gcc dot gnu dot org
2006-09-20 3:48 ` jvdelisle at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-07 5:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-01-07 05:43 -------
(In reply to comment #2)
> It seems that, above a given size, gfortran declares the array as non-static:
Does not matter, the front-end is supposed to error out when the array's size
has overflowed.
The DECL_SIZE_UNIT is <integer_cst 0x42e64800 overflow -34359738368>
See the overflow. There were a couple of bugs about the C, C++ and Ada
front-ends that were like this bug (I cannot find them currently).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19654
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/19654] compilation crashes when variable is too large instead of showing error
[not found] <bug-19654-9126@http.gcc.gnu.org/bugzilla/>
2006-01-07 5:43 ` [Bug fortran/19654] compilation crashes when variable is too large instead of showing error pinskia at gcc dot gnu dot org
@ 2006-06-17 4:14 ` jvdelisle at gcc dot gnu dot org
2006-09-20 3:48 ` jvdelisle at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-06-17 4:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2006-06-17 03:32 -------
The test case in comment#1 now compiles without error and segfaults when run.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19654
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/19654] compilation crashes when variable is too large instead of showing error
[not found] <bug-19654-9126@http.gcc.gnu.org/bugzilla/>
2006-01-07 5:43 ` [Bug fortran/19654] compilation crashes when variable is too large instead of showing error pinskia at gcc dot gnu dot org
2006-06-17 4:14 ` jvdelisle at gcc dot gnu dot org
@ 2006-09-20 3:48 ` jvdelisle at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-09-20 3:48 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 897 bytes --]
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2006-09-20 03:48 -------
I think this is fixed. If I increase the size of the parameter I get the
expected error message.
program kk
implicit none
integer, parameter :: N=65535, M=N/2-1
real, dimension(N,N) :: input
call random_number(input)
end program kk
[jerry@quasar pr19654]$ gfc pr19654.f90
pr19654.f90: In function MAIN__:
pr19654.f90:4: error: size of variable input is too large
I think this is fixed.
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19654
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/19654] compilation crashes when variable is too large instead of showing error
2005-01-27 12:10 [Bug fortran/19654] New: " guillemborrell at yahoo dot es
2005-01-27 13:41 ` [Bug fortran/19654] " pinskia at gcc dot gnu dot org
@ 2005-01-28 10:37 ` coudert at clipper dot ens dot fr
1 sibling, 0 replies; 5+ messages in thread
From: coudert at clipper dot ens dot fr @ 2005-01-28 10:37 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]
------- Additional Comments From coudert at clipper dot ens dot fr 2005-01-28 10:37 -------
It seems that, above a given size, gfortran declares the array as non-static:
$ cat a.f90
program kk
implicit none
integer, parameter :: N=32768**2
real, dimension(N) :: input
call random_number(input)
end program kk
$ diff a.f90 b.f90
3c3
< integer, parameter :: N=32768**2
---
> integer, parameter :: N=32765**2
$ diff a.f90.t02.original b.f90.t02.original
3c3
< real4 input[1073741824];
---
> static real4 input[1073545225];
10c10
< parm.0.dim[0].ubound = 1073741824;
---
> parm.0.dim[0].ubound = 1073545225;
$ gfortran -fdump-tree-original a.f90
a.f90: In function MAIN__:
a.f90:5: internal compiler error: in tree_low_cst, at tree.c:3816
$ gfortran -fdump-tree-original b.f90
b.f90: In function MAIN__:
b.f90:4: error: size of variable input is too large
Maybe this information will be useful to our gfortran gurus.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19654
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/19654] compilation crashes when variable is too large instead of showing error
2005-01-27 12:10 [Bug fortran/19654] New: " guillemborrell at yahoo dot es
@ 2005-01-27 13:41 ` pinskia at gcc dot gnu dot org
2005-01-28 10:37 ` coudert at clipper dot ens dot fr
1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-27 13:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-27 13:41 -------
Confirmed, reduced (and self contained) testcase:
program kk
implicit none
integer, parameter :: N=32768, M=N/2-1
real, dimension(N,N) :: input
call random_number(input)
end program kk
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid, ice-
| |checking, ice-on-invalid-
| |code
Last reconfirmed|0000-00-00 00:00:00 |2005-01-27 13:41:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19654
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-09-20 3:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-19654-9126@http.gcc.gnu.org/bugzilla/>
2006-01-07 5:43 ` [Bug fortran/19654] compilation crashes when variable is too large instead of showing error pinskia at gcc dot gnu dot org
2006-06-17 4:14 ` jvdelisle at gcc dot gnu dot org
2006-09-20 3:48 ` jvdelisle at gcc dot gnu dot org
2005-01-27 12:10 [Bug fortran/19654] New: " guillemborrell at yahoo dot es
2005-01-27 13:41 ` [Bug fortran/19654] " pinskia at gcc dot gnu dot org
2005-01-28 10:37 ` coudert at clipper dot ens dot fr
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).