[Bug fortran/19925] Implied do-loop in an initialization expression is broken

bdtaylo1 at uiuc dot edu gcc-bugzilla@gcc.gnu.org
Tue Jan 2 21:48:00 GMT 2007



------- Comment #7 from bdtaylo1 at uiuc dot edu  2007-01-02 21:47 -------
(In reply to comment #6)
> (The _i_initialized variable is not needed in a main program, but it is in a
> procedure.) This far it isn't a huge problem, but when 'i' is a PARAMETER it
> gets more complicated. PARAMETERs are meant to be compile time constants. Let's
> say we have e.g.
> 
> subroutine stuff
>    integer :: i_do
>    integer, parameter :: i(100001) = <whatever>
>    real(kind=i(1975)) :: a
> 
>    ...
> 
> end subroutine stuff

> 

This code is illegal - the kind specifier of a variable must be a scalar
integer value.  That should eliminate at least this need for compile-time
evaluation of parameter arrays.


-- 


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



More information about the Gcc-bugs mailing list