public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30939] New: Report if dummy array sizes is larger than actual array size
@ 2007-02-23 21:24 burnus at gcc dot gnu dot org
2007-03-18 18:07 ` [Bug fortran/30939] " fxcoudert at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-02-23 21:24 UTC (permalink / raw)
To: gcc-bugs
NAG f95:
Error: bar.f90, line 6: Array supplied for dummy IN (no. 1) of COPY too small
g95:
Error: Array argument at (1) is smaller than the dummy size
gfortran: No error/warning.
--------------------------
program main
implicit none
character :: digit_arr(10)
call copy(digit_arr)
contains
subroutine copy(in)
character, dimension(11) :: in, out
end subroutine copy
end program main
--------------------------
Note: The other way round is ok, i.e. actual = 1:10, dummy = 1:8
--
Summary: Report if dummy array sizes is larger than actual array
size
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30939
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/30939] Report if dummy array sizes is larger than actual array size
2007-02-23 21:24 [Bug fortran/30939] New: Report if dummy array sizes is larger than actual array size burnus at gcc dot gnu dot org
@ 2007-03-18 18:07 ` fxcoudert at gcc dot gnu dot org
2007-07-04 7:19 ` [Bug fortran/30939] Run-time check " burnus at gcc dot gnu dot org
2010-05-19 17:53 ` dfranke at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-03-18 18:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-03-18 18:07 -------
Related to -fbounds-check, isn't it?
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |27766
nThis| |
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-03-18 18:07:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30939
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/30939] Run-time check if dummy array sizes is larger than actual array size
2007-02-23 21:24 [Bug fortran/30939] New: Report if dummy array sizes is larger than actual array size burnus at gcc dot gnu dot org
2007-03-18 18:07 ` [Bug fortran/30939] " fxcoudert at gcc dot gnu dot org
@ 2007-07-04 7:19 ` burnus at gcc dot gnu dot org
2010-05-19 17:53 ` dfranke at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-04 7:19 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/30939] Run-time check if dummy array sizes is larger than actual array size
2007-02-23 21:24 [Bug fortran/30939] New: Report if dummy array sizes is larger than actual array size burnus at gcc dot gnu dot org
2007-03-18 18:07 ` [Bug fortran/30939] " fxcoudert at gcc dot gnu dot org
2007-07-04 7:19 ` [Bug fortran/30939] Run-time check " burnus at gcc dot gnu dot org
@ 2010-05-19 17:53 ` dfranke at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-19 17:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dfranke at gcc dot gnu dot org 2010-05-19 17:53 -------
(In reply to comment #2)
> 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:
Same as PR27989.
*** This bug has been marked as a duplicate of 27989 ***
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30939
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-05-19 17:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-23 21:24 [Bug fortran/30939] New: Report if dummy array sizes is larger than actual array size burnus at gcc dot gnu dot org
2007-03-18 18:07 ` [Bug fortran/30939] " fxcoudert at gcc dot gnu dot org
2007-07-04 7:19 ` [Bug fortran/30939] Run-time check " burnus at gcc dot gnu dot org
2010-05-19 17:53 ` dfranke at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).