This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24248] [4.0 Regression] Segmentation fault on valid code w/ -O2 -finline-functions
- 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: 17 Oct 2005 23:54:54 -0000
- Subject: [Bug c++/24248] [4.0 Regression] Segmentation fault on valid code w/ -O2 -finline-functions
- References: <bug-24248-10332@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from reichelt at gcc dot gnu dot org 2005-10-17 23:54 -------
Shorter testcase (ICEs with -O):
===============================================================
#pragma interface
template<typename T> struct A { T *p; ~A() { delete p; } };
template<typename T> struct B : A<T> { B(const A<T>&); };
struct C { B<C> b; C(const B<C>&); };
void foo() { new C(A<C>()); }
===============================================================
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24248