On Tue, 2026-03-10 at 12:51 +0100, Jakub Jelinek wrote: [...snip...]
> > The problem is that get_field_by_name now recurses on TREE_TYPE of > everything in TYPE_FIELDS (which can be FIELD_DECL but many other > things (though primarily for C++ and other languages)). More > importantly, > it recurses even for FIELD_DECLs with scalar (e.g. INTEGER_TYPE) > types > and using TYPE_FIELDS on such types results in checking ICE. > > The following patch fixes that by only recursing on anonymous > struct/union > FIELD_DECLs. For C those have NULL DECL_NAME, for C++ they would > have > IDENTIFIER_ANON_P IDENTIFIER_NODE as DECL_NAME (but it seems this > plugin > is only used for C). > > Tested on x86_64-linux, ok for trunk? Thanks, and sorry for the bug. Out of interest, what version of Python 3 were you testing against? Dave
