This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30939] Run-time check if dummy array sizes is larger than actual array size
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2007 07:19:23 -0000
- Subject: [Bug fortran/30939] Run-time check if dummy array sizes is larger than actual array size
- References: <bug-30939-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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