[Bug c++/35548] g++ 4.3.{0,1} miscompile this simple program

2008-03-13 Thread varg at theor dot jinr dot ru
--- Comment #3 from varg at theor dot jinr dot ru 2008-03-13 11:17 --- Even more simple program: template class ptr { T* p; public: ptr(T* t) throw() : p(t) { p->set_refcount(1); } explicit ptr(T& t) throw() : p(&t) {

[Bug c++/35548] g++ 4.3.{0,1} miscompile this simple program

2008-03-12 Thread varg at theor dot jinr dot ru
--- Comment #2 from varg at theor dot jinr dot ru 2008-03-13 06:42 --- Richard Guenther wrote: > the object compare is invoked on is not properly initialized (its _vptr is > NULL). Not exactly. The object (or rather, the pointer managed by that objects) gets deleted too early. > Pleas

[Bug c++/35548] g++ 4.3.{0,1} miscompile this simple program

2008-03-12 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-03-12 10:19 --- It's by no means a "simple" program ;) the failure mode is that Program received signal SIGSEGV, Segmentation fault. 0x00400bed in basic::compare (this=0x603040, [EMAIL PROTECTED]) at t.C:98 98