public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30402] New: Bounds checking for string functions
@ 2007-01-07 10:57 tkoenig at gcc dot gnu dot org
2007-01-07 11:04 ` [Bug fortran/30402] " tkoenig at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-01-07 10:57 UTC (permalink / raw)
To: gcc-bugs
Lots of bounds-checking errors in this program...
$ cat string_check.f90
program main
character (len=4) :: a,b
character (len=1) :: c
a = 'aa '
b = trim(a) ! RHS is too short
a = repeat('b', 2) ! RHS is too short
c = trim(a) ! LHS is too short, string out of bounds
c = repeat('b', 2) ! LHS is too short, string out of bounds
c = a ! LHS is too short, string out of bounds
end program main
$ gfortran -fbounds-check string_check.f90
$ ./a.out
$
--
Summary: Bounds checking for string functions
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tkoenig at gcc dot gnu dot org
OtherBugsDependingO 27766
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30402
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/30402] Bounds checking for string functions
2007-01-07 10:57 [Bug fortran/30402] New: Bounds checking for string functions tkoenig at gcc dot gnu dot org
@ 2007-01-07 11:04 ` tkoenig at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-01-07 11:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tkoenig at gcc dot gnu dot org 2007-01-07 11:04 -------
Actualy, there aren't, I was confused.
Sorry :-)
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30402
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-07 11:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-07 10:57 [Bug fortran/30402] New: Bounds checking for string functions tkoenig at gcc dot gnu dot org
2007-01-07 11:04 ` [Bug fortran/30402] " tkoenig 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).