https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119711
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> Created attachment 61064 [details]
> gcc15-pr119711.patch
>
> Untested fix.
Ah, interesting way with the macros to reduce the size of the change.
The alternative would have been methods for get/set (references don't
work for the bitfields) I guess. I suppose C++ needs an extension
allowing
struct { using x = a::b; struct { int b; } a; };
or so ;)