This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25071] dummy argument larger than actual argument
- 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 19:48:38 -0000
- Subject: [Bug fortran/25071] dummy argument larger than actual argument
- References: <bug-25071-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 19:48 -------
## g95 ##
In file foo.f90:2
CALL TST(I)
1
Error: Array argument at (1) is smaller than the dummy size
## Intel ##
fortcom: Error: foo.f90, line 2: The storage extent of the dummy argument
exceeds that of the actual argument. [I]
CALL TST(I)
---------^
fortcom: Info: foo.f90, line 4: This variable has not been used. [I]
SUBROUTINE TST(I)
----------------^
compilation aborted for foo.f90 (code 1)
## Portland ##
## Sun ##
CALL TST(I)
^
"foo.f90", Line = 2, Column = 10: ERROR: The overall size of the dummy argument
array is greater than the size of this actual 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 19:48:38
date| |
Summary|better diagnostic needed |dummy argument larger than
| |actual argument
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25071