public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/56758] New: Missing bounds check for explict-size arrays (+ character scalar storage association)
@ 2013-03-27 22:35 burnus at gcc dot gnu.org
2015-10-09 21:38 ` [Bug fortran/56758] " dominiq at lps dot ens.fr
0 siblings, 1 reply; 2+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-03-27 22:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56758
Bug #: 56758
Summary: Missing bounds check for explict-size arrays (+
character scalar storage association)
Classification: Unclassified
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: burnus@gcc.gnu.org
NAG detects it and prints:
Actual argument for dummy array X too small -
3 elements instead of 5
call foo(["a","b","c"], 5)
call foo("abc", 5)
contains
subroutine foo(x,n)
character :: x(n)
end subroutine
end
For constant length, the compiler already does so at compile time:
Warning: Actual argument contains too few elements for dummy argument 'x' (3/5)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-09 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-27 22:35 [Bug fortran/56758] New: Missing bounds check for explict-size arrays (+ character scalar storage association) burnus at gcc dot gnu.org
2015-10-09 21:38 ` [Bug fortran/56758] " dominiq at lps dot ens.fr
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).