public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/22615] New: [4.1 Regression] ICE in first_vi_for_offset, at tree-ssa-structalias.c:2858
@ 2005-07-22 18:53 pinskia at gcc dot gnu dot org
  2005-07-22 19:00 ` [Bug tree-optimization/22615] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 18:53 UTC (permalink / raw)
  To: gcc-bugs

Take the following C++ code, with -O1 we ICE right now (This is forwarded from PR 22277 because the 
orginal bug there was fixed):

struct A
{
  char c;
  int i;
};

A a;

struct B
{
  char c, d;
};

union C
{
  A *p;
  B *q;

  C() : p(&a) {}
  char& foo() { return q->d; }
};

void bar() { C().foo() = 0; }

-- 
           Summary: [4.1 Regression] ICE in first_vi_for_offset, at tree-
                    ssa-structalias.c:2858
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: dberlin at gcc dot gnu dot org,gcc-bugs at gcc dot gnu
                    dot org
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2005-08-14 20:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-22 18:53 [Bug tree-optimization/22615] New: [4.1 Regression] ICE in first_vi_for_offset, at tree-ssa-structalias.c:2858 pinskia at gcc dot gnu dot org
2005-07-22 19:00 ` [Bug tree-optimization/22615] " pinskia at gcc dot gnu dot org
2005-08-11  2:16 ` pinskia at gcc dot gnu dot org
2005-08-11 10:44 ` rguenth at gcc dot gnu dot org
2005-08-11 10:53 ` rguenth at gcc dot gnu dot org
2005-08-11 12:55 ` dberlin at dberlin dot org
2005-08-14 19:24 ` cvs-commit at gcc dot gnu dot org
2005-08-14 20:58 ` dberlin 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).