[Bug c++/100495] constexpr virtual destructor incorrectly reports memory leak

2021-09-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495 --- Comment #9 from Jakub Jelinek --- Fixed for 11.3+/12+ so far, probably should be backported for 10.4 too.

[Bug c++/100495] constexpr virtual destructor incorrectly reports memory leak

2021-09-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495 --- Comment #8 from CVS Commits --- The releases/gcc-11 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:9f300873f6bf8456ebdbd40d0211aefe57f95cb5 commit r11-8968-g9f300873f6bf8456ebdbd40d0211aefe57f95cb5 Author: Jakub Jelinek

[Bug c++/100495] constexpr virtual destructor incorrectly reports memory leak

2021-09-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495 --- Comment #7 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:81f9718139cb1cc164ada411ada8cca9f32b8be8 commit r12-3387-g81f9718139cb1cc164ada411ada8cca9f32b8be8 Author: Jakub Jelinek Date:

[Bug c++/100495] constexpr virtual destructor incorrectly reports memory leak

2021-09-06 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/100495] constexpr virtual destructor incorrectly reports memory leak

2021-09-06 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495 --- Comment #5 from Jakub Jelinek --- Ah, for constructors this is likely a non-issue, because in_chrg etc. only appears on constructors of classes with virtual bases and such constructors are not constexpr.

[Bug c++/100495] constexpr virtual destructor incorrectly reports memory leak

2021-09-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495 Andrew Pinski changed: What|Removed |Added CC||friedkeenan at protonmail dot com ---

[Bug c++/100495] constexpr virtual destructor incorrectly reports memory leak

2021-05-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug c++/100495] constexpr virtual destructor incorrectly reports memory leak

2021-05-09 Thread ldalessandro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495 --- Comment #2 from Luke Dalessandro --- It's also possible to workaround this with array allocation. ``` struct Foo { constexpr virtual ~Foo() {} }; constexpr bool foo() { Foo *ptr = new Foo[1]{}; delete [] ptr; return true;

[Bug c++/100495] constexpr virtual destructor incorrectly reports memory leak

2021-05-09 Thread ldalessandro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495 --- Comment #1 from Luke Dalessandro --- A short-term workaround for this appears to be explicit allocator usage (works back at least to 10.2). ``` #include struct Foo { constexpr virtual ~Foo() {} }; constexpr bool foo() {