Re: [c++/55635] operator delete and throwing dtors

2016-04-01 Thread Nathan Sidwell
On 04/01/16 11:36, Jason Merrill wrote: On 04/01/2016 11:21 AM, Nathan Sidwell wrote: this fixes bug 55635 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55635 Please include the word "patch" in the subject line of patch email. The patch looks good, but this doesn't seem to be a regression; do

Re: [c++/55635] operator delete and throwing dtors

2016-04-01 Thread Jason Merrill
On 04/01/2016 11:21 AM, Nathan Sidwell wrote: this fixes bug 55635 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55635 Please include the word "patch" in the subject line of patch email. The patch looks good, but this doesn't seem to be a regression; do you think it's an important enough bug t

[c++/55635] operator delete and throwing dtors

2016-04-01 Thread Nathan Sidwell
this fixes bug 55635 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55635 Somewhat surprisingly, a delete expression should always call the operator delete function, regardless of whether the object destructor(s) throw. See this note at the end of 5.3.5/7: [Note: The deallocation function is c