--- Comment #10 from fxcoudert at gcc dot gnu dot org 2009-05-16 16:53
---
Subject: Bug 31243
Author: fxcoudert
Date: Sat May 16 16:53:02 2009
New Revision: 147619
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147619
Log:
PR fortran/31243
* resolve.c (resolve_
--- Comment #9 from fxcoudert at gcc dot gnu dot org 2009-05-16 16:15
---
Patch posted for the compile-time part of this PR:
http://gcc.gnu.org/ml/gcc-patches/2009-05/msg01013.html
Here are three testcases that should be handled when runtime checking is
performed:
$ cat a3.f90
progra
--- Comment #8 from jvdelisle at gcc dot gnu dot org 2009-04-18 22:07
---
Unassigning myself, time constraints
--
jvdelisle at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Comment #7 from dominiq at lps dot ens dot fr 2009-04-17 22:42 ---
Compiling the code in comment #1 gives:
[ibook-dhum] f90/bug% gfc42 pr31243.f90
pr31243.f90:12.15:
print *, len(ch)
1
Error: Result of LEN overflows its kind at (1)
It compiles with -fdefault-intege
--- Comment #6 from jb at gcc dot gnu dot org 2009-04-17 22:13 ---
I'm not sure how this could be fixed in a "proper way" without breaking the
procedure call ABI. Gfortran follows pretty much every other Fortran compiler
in providing character length as a hidden argument of type default
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2009-01-27 05:00
---
I am going to look at this for a bit.
--
jvdelisle at gcc dot gnu dot org changed:
What|Removed |Added
--
--- Comment #4 from domob at gcc dot gnu dot org 2008-07-24 16:31 ---
This seems to be still in there... Any interest that I work on this? What's
about emitting a warning if either len= or a substring-reference expression is
of a KIND that can have larger values than the machine can ha
--- Comment #3 from tkoenig at gcc dot gnu dot org 2007-12-25 23:32 ---
Maybe we could just issue a "compiler limit" error
message.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31243
--
fxcoudert at gcc dot gnu dot org changed:
What|Removed |Added
AssignedTo|fxcoudert at gcc dot gnu dot|unassigned at gcc dot gnu
|org
--- Comment #2 from tobi at gcc dot gnu dot org 2007-04-16 13:52 ---
Issuing a warning would be a good thing, "INTEGER*8 value may be greater than
longest possible CHARACTER on your architecture", maybe even a runtime error in
the second case. I hope you're not suggesting that we devise
--- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-03-28 22:50
---
Same thing happens for local variables, character arguments and character
functions... Example of the first case:
subroutine foo(i)
integer(kind=8), intent(in) :: i
character(len=i) :: x
print *, len(x)
en
--
fxcoudert at gcc dot gnu dot org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last recon
12 matches
Mail list logo