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 c++/24248] [4.0 Regression] Segmentation fault on valid code w/ -O2 -finline-functions



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


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