This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25095] Disallowed intrinsic in initialization statement
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2007 19:07:27 -0000
- Subject: [Bug fortran/25095] Disallowed intrinsic in initialization statement
- References: <bug-25095-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from dfranke at gcc dot gnu dot org 2007-05-21 20:07 -------
Confirmed by majority vote.
$> ifort -warn all pr25095.f90
fortcom: Error: pr25095.f90, line 2: This expression cannot be evaluated.
[MODULO]
DATA (i(MODULO(j,5)),j=1,4) /4*0/
--------^
fortcom: Info: pr25095.f90, line 1: This variable has not been used. [I]
INTEGER :: i(10), j
-----------^
compilation aborted for pr25095.f90 (code 1)
$> sunf95 -w4 pr25095.f90
DATA (i(MODULO(j,5)),j=1,4) /4*0/
^
"pr25095.f90", Line = 2, Column = 9: ERROR: This function name must not appear
in a DATA statement expression.
f90comp: 3 SOURCE LINES
f90comp: 1 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
$> gfortran-svn -v
gcc version 4.3.0 20070517 (experimental)
still accepts this code.
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-05-21 20:07:27
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25095