[Bug c++/60213] Weird crash when delete an object

2014-02-16 Thread hubert.vansteenhuyse at freecode dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60213 hubert.vansteenhuyse at freecode dot be changed: What|Removed |Added Status|WAITING |RESOLVED

[Bug c++/60213] Weird crash when delete an object

2014-02-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60213 --- Comment #5 from Jonathan Wakely --- (In reply to hubert.vansteenhuyse from comment #3) > Of course it is, the example is merely a pseudo code to make clear what > happened. Didn't you read http://gcc.gnu.org/bugs/ ?

[Bug c++/60213] Weird crash when delete an object

2014-02-15 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60213 --- Comment #4 from Marc Glisse --- (In reply to hubert.vansteenhuyse from comment #3) > Of course it is, the example is merely a pseudo code to make clear what > happened. That's my point, pseudo-code is useless, if we can't reproduce the issue

[Bug c++/60213] Weird crash when delete an object

2014-02-15 Thread hubert.vansteenhuyse at freecode dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60213 --- Comment #3 from hubert.vansteenhuyse at freecode dot be --- (In reply to Marc Glisse from comment #2) > Your example is bogus: { and } don't match, main must return int, etc. If I > fix it so it compiles, I don't see any crash. Of course it is

[Bug c++/60213] Weird crash when delete an object

2014-02-15 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60213 Marc Glisse changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug c++/60213] Weird crash when delete an object

2014-02-15 Thread hubert.vansteenhuyse at freecode dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60213 --- Comment #1 from hubert.vansteenhuyse at freecode dot be --- struct A { A *a[2]; A() { a[0] = 0; a[1] = 0; } ~A(){ if(a[0]) delete a[0]; if(a[1]) delete a[1]; } void main(){ A *a = new A(); a->a[0] = new A(); a->a[1] = new A(); delete a; /