------- Comment #8 from reichelt at gcc dot gnu dot org  2008-12-28 18:50 
-------
Shorter testcase without templates:

==========================================================================
inline void* operator new[](__SIZE_TYPE__, void* p) throw() { return p; }

struct A
{
  A() {}
  int i;
};

struct B
{
  static void foo(A *p, int n) { new(p) A[n]; }
  B() { foo(p, 1); }
  A* p;
};

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 work|4.4.0 4.1.1                 |4.4.0 4.1.1 4.2.5


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

Reply via email to