This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/38072] [4.3 Regression] ICE during inlining of valid code
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Dec 2008 18:50:04 -0000
- Subject: [Bug tree-optimization/38072] [4.3 Regression] ICE during inlining of valid code
- References: <bug-38072-16938@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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