On 3/7/26 4:21 AM, Jakub Jelinek wrote:
Hi!{,u8}display_string_of was printing any unnamed FIELD_DECL as %T::<unnamed bit-field>, but anon union member is also unnamed and is not a bit-field. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2026-03-07 Jakub Jelinek <[email protected]> PR c++/124388 * reflect.cc (eval_display_string_of): Only print <unnmamed bit-field> for DECL_UNNAMED_BIT_FIELD, otherwise print <unnamed member>. * g++.dg/reflect/display_string_of1.C (S, NS5::S): Add union { int a; }. Add static_assertions that the unnamed non-static data member is printed as <unnamed member>.
How about <anonymous union>? Jason
