https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93711
Lénárd Szolnoki <leni536 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |leni536 at gmail dot com
--- Comment #3 from Lénárd Szolnoki <leni536 at gmail dot com> ---
A smaller example:
struct S {
S(S&&) = delete;
};
S foo();
struct A {
[[no_unique_address]] S s = foo();
};
A a{};
Version:
11.0.0 20200616
Command line options:
-std=c++20 -Wall -Wextra -pedantic
Diagnostics:
during RTL pass: expand
<source>: In function 'void __static_initialization_and_destruction_0(int,
int)':
<source>:11:5: internal compiler error: in assign_temp, at function.c:984
11 | A a{};
| ^