--- Comment #8 from fxcoudert at gcc dot gnu dot org 2006-05-07 16:27
---
(In reply to comment #6)
> I'm not a language lawyer, but if I read it correctly, then
> INT is a standard intrinsic function and thus allowed in a
> restricted expression (F2003 draft standard, 7.1.6, R729, C710
--- Comment #7 from pinskia at gcc dot gnu dot org 2006-01-09 22:31 ---
we no longer ICE on this code but we still accept it.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Comment #6 from anlauf at gmx dot de 2005-11-04 15:56 ---
(In reply to comment #2)
> This is invalid code, INT is not allowed in a specification expression.
I'm not a language lawyer, but if I read it correctly, then
INT is a standard intrinsic function and thus allowed in a
restric
--- Comment #5 from manfred99 at gmx dot ch 2005-11-04 15:32 ---
1) There is an easy way to circumvent the ICE:
if you add an explicit type conversion for IMAX, such as in
REAL:: AUX1(25000+INT(0.82*float(IMAX)))
the ICE goes away and gfortran compiles it successfully and
withou
--- Additional Comments From manfred99 at gmx dot ch 2004-12-12 21:01
---
Subject: Re: ICE with computed array declaration
This example is from the software copygb
(ftp://ftpprd.ncep.noaa.gov/pub/cpc/wd51we/copygb) which was ported
from generic Fortran95 to g95,
and thus compiles perfe
--- Additional Comments From tobi at gcc dot gnu dot org 2004-12-09 00:47
---
The problem is that we insert a function call to convert IMAX to default real,
and check_inquiry does not support these conversion functions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18271
--- Additional Comments From tobi at gcc dot gnu dot org 2004-12-09 00:22
---
This is invalid code, INT is not allowed in a specification expression.
--
What|Removed |Added
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-02 13:37
---
Confirmed, here is the backtrace:
#0 0x000169f4 in check_inquiry (e=0x42103d20) at
/Users/pinskia/src/local/gcc/gcc/fortran/expr.c:
1334
#1 0x00017038 in check_restricted (e=0x5a7aa4) at
/Users/pinskia/s