[Bug c++/93803] New: ICE: segmentation fault with constant initialization of class having a [[no_unique_address]] field
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 18 15:16:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93803
Bug ID: 93803
Summary: ICE: segmentation fault with constant initialization
of class having a [[no_unique_address]] field
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ppalka at gcc dot gnu.org
Target Milestone: ---
$ cat blah.cc
struct empty { };
struct foo
{
[[no_unique_address]] empty x;
constexpr
foo() : x{}
{ }
};
struct bar : foo
{
using foo::foo;
};
constexpr bar a{};
$ g++-9 -fsyntax-only -std=c++2a blah.cc
$ g++-10 -fsyntax-only -std=c++2a blah.cc
blah.cc:17:17: internal compiler error: Segmentation fault
17 | constexpr bar a{};
| ^
This seems to be a regression from GCC 9.
More information about the Gcc-bugs
mailing list