[Bug tree-optimization/40642] [4.5 regression] ICE with -fprofile-generate
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jul 5 23:59:00 GMT 2009
------- Comment #1 from reichelt at gcc dot gnu dot org 2009-07-05 23:59 -------
Confirmed. Reduced testcase (crashes with "-O2 -fprofile-generate"):
========================================================================
inline void* operator new(__SIZE_TYPE__, void* p) throw() { return p; }
inline void operator delete (void*, void*) throw() { }
template<typename T> void foo(void* p, T t)
{
new(p) T(t);
}
void bar();
template<typename T> struct A
{
T* p;
A() { try { foo(p, T()); } catch(...) {} }
A(const A&) { try { bar(); } catch(...) { throw; } }
};
A<A<int> > a;
========================================================================
The bug appeared between 2009-04-24 and 2009-05-09.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-07-05 23:59:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642
More information about the Gcc-bugs
mailing list