public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/33458]  New: [4.3 regression] ICE "PHI def is not a GIMPLE value"
@ 2007-09-17 21:47 reichelt at gcc dot gnu dot org
  2007-09-17 21:47 ` [Bug tree-optimization/33458] " reichelt at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-09-17 21:47 UTC (permalink / raw)
  To: gcc-bugs

The following valid testcase triggers an ICE on mainline
when compiled with "-O":

===================================
inline void foo(int* p, int n)
{
  for (; n > 0; --n, ++p)
    *p = 0;
}

struct A
{
  int x[2];
  A() { foo(x, 2); }
};

inline A getA() { return A(); }

struct B
{
  A a;
  B();
};

B::B() : a(getA()) {}
===================================

bug.cc: In constructor 'B::B()':
bug.cc:20: error: PHI def is not a GIMPLE value
p_2 = PHI <&this_1(D)->a.x[0](2), p_5(3)>

&this_1(D)->a.x[0];

bug.cc:20: internal compiler error: verify_stmts failed
Please submit a full bug report, [etc.]

The regression was introduced between 2007-06-23 an 2007-07-02.


-- 
           Summary: [4.3 regression] ICE "PHI def is not a GIMPLE value"
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-11-06  8:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-17 21:47 [Bug tree-optimization/33458] New: [4.3 regression] ICE "PHI def is not a GIMPLE value" reichelt at gcc dot gnu dot org
2007-09-17 21:47 ` [Bug tree-optimization/33458] " reichelt at gcc dot gnu dot org
2007-09-17 21:56 ` pinskia at gcc dot gnu dot org
2007-09-18 12:56 ` rguenth at gcc dot gnu dot org
2007-09-22  5:00 ` rwgk at yahoo dot com
2007-10-10 18:00 ` mmitchel at gcc dot gnu dot org
2007-10-19 16:42 ` janis at gcc dot gnu dot org
2007-11-03 19:55 ` pinskia at gcc dot gnu dot org
2007-11-03 20:21 ` reichelt at gcc dot gnu dot org
2007-11-05 14:39 ` jakub at gcc dot gnu dot org
2007-11-06  8:30 ` jakub at gcc dot gnu dot org
2007-11-06  8:36 ` jakub 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).