[Bug fortran/30939] Run-time check if dummy array sizes is larger than actual array size

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 4 07:19:00 GMT 2007



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



More information about the Gcc-bugs mailing list