This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25045] DIM argument of PRODUCT is not optional
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Nov 2005 18:51:52 -0000
- Subject: [Bug fortran/25045] DIM argument of PRODUCT is not optional
- References: <bug-25045-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2005-11-26 18:51 -------
gfortran does not give diagnostic on that one.
## g95 ##
In file foo.f90:5
write(6,*) PRODUCT(A,N)
1
Error: 'dim' argument of 'product' intrinsic at (1) must not be OPTIONAL
## Intel ##
fortcom: Error: foo.f90, line 5: Intrinsic DIM argument shall not be an
optional dummy argument. [N]
write(6,*) PRODUCT(A,N)
-----------------------^
compilation aborted for foo.f90 (code 1)
## Sun ##
write(6,*) PRODUCT(A,N)
^
"foo.f90", Line = 5, Column = 24: ERROR: This actual argument must not be an
optional dummy argument.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2005-11-26 18:51:52
date| |
Summary|better diagnostic needed |DIM argument of PRODUCT is
| |not optional
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25045