This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/32386] Pure function not allowed in specification expression



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

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

> Date: 18 Jun 2007 01:00:47 -0000
> From: jvdelisle at gcc dot gnu dot org <gcc-bugzilla@gcc.gnu.org>
> To: john.harper@vuw.ac.nz
> Subject: [Bug fortran/32386] Pure function not allowed in specification
>     expression
> 
>
>
> ------- Comment #1 from jvdelisle at gcc dot gnu dot org  2007-06-18 01:00 -------
> Not saying whether this is valid or not.  However Intel ifort says:
>
> fortcom: Error: john.f90, line 13: An automatic object is invalid in a main
> program.   [STRINGB]
> CHARACTER(len(halfit(stringa))) :: stringb
> -----------------------------------^
> compilation aborted for john.f90 (code 1)
>
>
> -- 
>
>
> 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.

I think Intel is wrong because my stringb is not an automatic object.
Its length depends on 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 john.harper@vuw.ac.nz phone (+64)(4)463 5341 fax (+64)(4)463 5045


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]