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.
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
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:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495
Jakub Jelinek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495
Andrew Pinski changed:
What|Removed |Added
CC||friedkeenan at protonmail dot
com
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100495
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org,
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;
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() {