------- Comment #6 from reichelt at gcc dot gnu dot org  2008-12-28 17:57 
-------
Shorter testcase:

=========================================
struct A
{
  A()
  {
    for (int* p = x; p != x+1; ++p)
      *p = 0;
  }

  A foo()
  {
    A a;
    a.x[0] = x[0];
    return a;
  }

  int x[1];
};

struct B
{
  B() : a(A().foo()) {}
  A a;
};

B b;
=========================================


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored
      Known to fail|4.3.3                       |4.3.0 4.3.3


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

Reply via email to