public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13772] New: [tree-ssa] ICE in get_expr_operands
@ 2004-01-20 16:20 reichelt at gcc dot gnu dot org
  2004-01-20 16:25 ` [Bug optimization/13772] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-01-20 16:20 UTC (permalink / raw)
  To: gcc-bugs

The following example causes an ICE when compiled with "g++ -O -c":

======================================================
struct A
{
    int i[2];

    int& operator[] (int j) { return i[j]; }

    int foo() { return (*this)[1]; }
};

void bar()
{
    A a[1];
    a[0].foo();
}
======================================================

The error message is:

ssa-bug.cc: In function `void bar()':
ssa-bug.cc:11: internal compiler error: in get_expr_operands, at
tree-ssa-operands.c:918
Please submit a full bug report, [etc.]

This is closely related to PR 13681, but here we don't have an
out-of-bounds access.

-- 
           Summary: [tree-ssa] ICE in get_expr_operands
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: bangerth at dealii dot org,gcc-bugs at gcc dot gnu dot
                    org


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


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

end of thread, other threads:[~2004-01-23 14:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-20 16:20 [Bug c++/13772] New: [tree-ssa] ICE in get_expr_operands reichelt at gcc dot gnu dot org
2004-01-20 16:25 ` [Bug optimization/13772] " pinskia at gcc dot gnu dot org
2004-01-22 10:41 ` zack at codesourcery dot com
2004-01-22 11:02 ` zack at codesourcery dot com
2004-01-22 13:07 ` schwab at suse dot de
2004-01-22 16:06 ` bangerth at dealii dot org
2004-01-22 19:45 ` rth at redhat dot com
2004-01-23 14:51 ` reichelt 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).