------- Comment #4 from John dot Harper at mcs dot vuw dot ac dot nz  
2007-06-18 02:44 -------
Subject: Re:  Pure function not allowed in specification
 expression

On Mon, 18 Jun 2007, kargl at gcc dot gnu dot org wrote:

> Date: 18 Jun 2007 01:46:09 -0000
> From: kargl at gcc dot gnu dot org <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [Bug fortran/32386] Pure function not allowed in specification
>     expression
> 
>
>
> ------- Comment #2 from kargl at gcc dot gnu dot org  2007-06-18 01:46 -------
> According to Lahey, the code is invalid.
>
> Lahey/Fujitsu Fortran 95 Source Check Output
>
> Compiling program unit halvestring at line 1:
> Compiling program unit testspec at line 9:
>  2049-S: "SOURCE.F90", line 13: Automatic object 'stringb' cannot be specified
> in the main program unit.
> Encountered 1 error, 0 warnings, 0 informations in file SOURCE.F90.
> Compiling file SOURCE.F90.
>
>
> -- 
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32386
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
So I think Lahey is wrong. My stringb is not an automatic object; it is
a character string whose length is LEN of a pure module function of a 
constant.

-- John Harper, School of Mathematics, Statistics and Computer Science,
Victoria University, PO Box 600, Wellington 6140, New Zealand
e-mail [EMAIL PROTECTED] phone (+64)(4)463 5341 fax (+64)(4)463 5045


-- 


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

Reply via email to