https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123660
--- Comment #4 from Boris Staletic <boris.staletic at protonmail dot com> --- Created attachment 63559 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63559&action=edit Untested patch to turn FIELD_DECL to OFFSET_REF During the processing of ADDR_EXPR, tsubst_non_call_postfix_expression() ends up resolving the SPLICE_EXPR and op becomes FIELD_DECL. That's what we pass then to build_x_unary_op() on the next line. However, there's nothing which would turn that FIELD_DECL into an OFFSET_REF and, as far as I can tell, in this case, build_x_unary_op() expects an OFFSET_REF. That would suggest that we're missing a build_offset_ref() call in between tsubst_non_call_postfix_expression() and build_x_unary_op(). If all that analysis is correct, an untested patch is attached.
