public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/21789] New: [4.1 regression] ICE with -ftree-vectorize
@ 2005-05-27 19:28 reichelt at gcc dot gnu dot org
  2005-05-27 20:07 ` [Bug tree-optimization/21789] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-05-27 19:28 UTC (permalink / raw)
  To: gcc-bugs

The following testcase crashes mainline when compiled with
g++ -O -ftree-vectorize:

==================================================================
struct C;

struct A
{
    void foo(const C&) { bar(); }
    void bar();
};

struct B
{
    short int x[2];
    B() { short int* p=x; for (int i=0; i<2; ++i) p[i] = 0; }
};

struct C
{
    A* p;
    char c;
    B b;

    void baz() const { p->bar(); }
};

void foobar(C& c, A& a)
{
    c.baz();
    a.foo(C());
}
==================================================================

The error message is:

  bug.cc: In function 'void foobar(C&, A&)':
  bug.cc:24: internal compiler error: tree check: expected ssa_name, have
var_decl in verify_ssa, at tree-ssa.c:750
  Please submit a full bug report, [etc.]

The 4.0 branch is not affected.

-- 
           Summary: [4.1 regression] ICE with -ftree-vectorize
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-06-01  9:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-27 19:28 [Bug tree-optimization/21789] New: [4.1 regression] ICE with -ftree-vectorize reichelt at gcc dot gnu dot org
2005-05-27 20:07 ` [Bug tree-optimization/21789] " pinskia at gcc dot gnu dot org
2005-05-30 13:27 ` dorit at il dot ibm dot com
2005-05-30 15:09 ` dorit at il dot ibm dot com
2005-05-30 17:18 ` pinskia at gcc dot gnu dot org
2005-06-01  9:47 ` 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).