blob: ec362ad91605bce24c686c8bfa719d4001451c63 [file] [log] [blame]
// PR c++/93803 - ICE with constexpr init and [[no_unique_address]].
// { dg-do compile { target c++20 } }
struct empty { };
struct foo {
[[no_unique_address]] empty x, x2, x3;
constexpr foo() : x{}, x2{} { }
};
struct bar : foo {
using foo::foo;
};
constexpr bar a{};