------- Comment #2 from kargl at gcc dot gnu dot org  2009-02-24 17:09 -------

(In reply to comment #1)
> Fails the same with 4.4, 4.2 reports an error:
> 
> gfortran-4.2 -S t.f90 
> t.f90:4.35:
> 
>             &a = (/ ( (float(n))**(1.0), n=1,2) /)
>                                   1
> Error: Exponent at (1) must be INTEGER for an initialization expression
> 
> so I'm not sure if the testcase is valid or not.
> 

It is invalid in Fortran 95, and the error message is correct.
It is valid in Fortran 2003.

The patch in 
http://gcc.gnu.org/ml/fortran/2009-01/msg00231.html
may fix your problem.


-- 


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

Reply via email to