Infamous PR fortran/19925
Steve Kargl
sgk@troutmask.apl.washington.edu
Sun Sep 14 20:40:00 GMT 2008
On Sun, Sep 14, 2008 at 09:57:05PM +0200, Dominique Dhumieres wrote:
> Steve,
>
> Thanks for the patch which a step in the right direction.
> It worked as expected on my tests replacing an unneeded ICE
> by an error. I have the following comments:
>
>
> (2) Could the error message be more user friendly?
> (a) is the locus of the error lost when it is emitted?
> if not it would be nice to have the location of the offending
> constructor (or any other info about it).
> (b) I think the maximum size should be given in the error message.
> (c) "Array constructor expansion" may be difficult to understand
> for lay users. Why not something such as "The number of elements
> in a constructor is greater than the maximum value 65535 ..."
> (or whatever you like to fix my Frenglish).
>
Is this better?
program test
implicit none
integer j
integer, parameter :: n = 100000
integer, parameter :: i(n) = (/ (2*j, j = 1, n) /)
print *, i(5)
end program test
REMOVE:kargl[207] ~/work/bin/gfortran -static -o z b.f90
b.f90:5.30:
integer, parameter :: i(n) = (/ (2*j, j = 1, n) /)
1
Error: The number of elements in the array constructor at (1) requires an increase of the allowed 65535 upper limit. See -fmax-array-constructor option
--
Steve
More information about the Fortran
mailing list