public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41847]  New: warning: array subscript is above array bounds
@ 2009-10-27 14:46 caolanm at redhat dot com
  2009-10-27 14:47 ` [Bug c++/41847] " caolanm at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: caolanm at redhat dot com @ 2009-10-27 14:46 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

#  gcc -Wall -O2 -c demo.cxx
demo.cxx: In function ‘void isInvertible()’:
demo.cxx:12: warning: array subscript is above array bounds

gcc --version
gcc (GCC) 4.4.2 20091019 (Red Hat 4.4.2-5)

I've the same results with...
gcc (GCC) 4.4.2 20091019 (Red Hat 4.4.2-5) (gcc-4.4.2-5.el6.s390x)
gcc (GCC) 4.4.1 20090725 (Red Hat 4.4.1-3) (gcc-4.4.1-3.s390x)
gcc (GCC) 4.4.0 20090506 (Red Hat 4.4.0-4) (gcc-4.4.0-4.s390x)

Possibly a duplicate of #35392
so its not a very recent thing.

I only get this warning (and related runtime failure) with s390x. Equivalent
x86_64/x86/ppc/ppc64/arm gcc's appear fine


-- 
           Summary: warning: array subscript is above array bounds
           Product: gcc
           Version: 4.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: caolanm at redhat dot com
 GCC build triplet: s390x-ibm-linux
  GCC host triplet: s390x-ibm-linux
GCC target triplet: s390x-ibm-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41847


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-01-19 23:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-41847-4@http.gcc.gnu.org/bugzilla/>
2011-10-15 21:30 ` [Bug c++/41847] warning: array subscript is above array bounds paolo.carlini at oracle dot com
2012-01-20  0:22 ` paolo.carlini at oracle dot com
2009-10-27 14:46 [Bug c++/41847] New: " caolanm at redhat dot com
2009-10-27 14:47 ` [Bug c++/41847] " caolanm at redhat dot com
2009-10-27 16:34 ` jakub at gcc dot gnu dot org
2009-10-27 16:53 ` jakub at gcc dot gnu dot org
2009-10-27 20:17 ` caolanm at redhat dot com
2009-10-31 17:59 ` caolanm at redhat dot com

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