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/25071] dummy argument larger than actual argument



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


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