This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/38072] [4.3 Regression] ICE during inlining of valid code



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]