------- 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