Re: [C++ Patch] PR 43452

2013-09-09 Thread Jason Merrill
OK, thanks. Jason

Re: [C++ Patch] PR 43452

2013-09-09 Thread Paolo Carlini
Hi, On 09/09/2013 06:35 AM, Jason Merrill wrote: On 09/05/2013 06:44 PM, Paolo Carlini wrote: + && warning (0, "possible problem detected in invocation of " + "delete [] operator:")) The warning should probably be suppressible by some flag. In fact clang has such a flag - I

Re: [C++ Patch] PR 43452

2013-09-08 Thread Jason Merrill
On 09/05/2013 06:44 PM, Paolo Carlini wrote: + && warning (0, "possible problem detected in invocation of " + "delete [] operator:")) The warning should probably be suppressible by some flag. Jason

[C++ Patch] PR 43452

2013-09-05 Thread Paolo Carlini
Hi, this very old minor issue is about the kind of diagnostic we want to produce for something like the existing g++.dg/init/delete1.C: class C; void foo(void *p) { delete [] ((C*)p) ; } that is when the array delete is called for a pointer to incomplete type. Currently we emit an hard