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/30939] Run-time check if dummy array sizes is larger than actual array size



------- Comment #2 from burnus at gcc dot gnu dot org  2007-07-04 07:19 -------
> Related to -fbounds-check, isn't it?
As my initial bug is fixed:

Warnung: Actual argument contains too few elements for dummy argument 'in'
(10/11) at (1)

and the missing parts are in PR30939, I dedicate it to the run time test.

Test: Place program and subroutine in different files, compile and run them.
NAG f95 -C=all shows then:


Actual argument for dummy array IN too small -
10 elements instead of 11
Program terminated by fatal error
In COPY, line 1 of aa.f90
Called by MAIN, line 4 of ab.f90


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Report if dummy array sizes |Run-time check if dummy
                   |is larger than actual array |array sizes is larger than
                   |size                        |actual array size


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30939


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