The check only runs in debug mode during serialization, but
assert()-fail on:
struct S { const int& x = 7; };
in C++ mode.
Differential D94804
[clang] Allow LifetimeExtendedTemporary to have no access specifier adamcz on Jan 15 2021, 9:42 AM. Authored by
Details The check only runs in debug mode during serialization, but struct S { const int& x = 7; }; in C++ mode.
Diff Detail
Event TimelineComment Actions thanks.
|
nit: personally I'd keep the old format style, just appending the new case.