[Bug middle-end/100861] False positive -Wmismatched-new-delete with destroying operator delete

2023-12-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100861 Andrew Pinski changed: What|Removed |Added CC||fchelnokov at gmail dot com ---

[Bug middle-end/100861] False positive -Wmismatched-new-delete with destroying operator delete

2021-06-01 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100861 --- Comment #3 from Martin Sebor --- The virtual dtor forces an out-of-line call to the Grommet dtor which then calls ::operator delete(), so the warning has nothing to complain about. It sees this code (compile with

[Bug middle-end/100861] False positive -Wmismatched-new-delete with destroying operator delete

2021-06-01 Thread josephcsible at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100861 --- Comment #2 from Joseph C. Sible --- Wait, if it's just checking whether the calls to operator new and operator delete match up, then why does adding "virtual ~Widget() {}" make the warning go away?

[Bug middle-end/100861] False positive -Wmismatched-new-delete with destroying operator delete

2021-06-01 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100861 Martin Sebor changed: What|Removed |Added Severity|normal |enhancement