https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112520

--- Comment #8 from John David Anglin <danglin at gcc dot gnu.org> ---
I think get_field_by_name needs updating to handle the struct layout
changes.  DECL_NAME(field) is null for the unnamed union and it causes
a segmentation fault when dereferenced by IDENTIFIER_POINTER.  I think
get_field_by_name needs to search inside unions and structs for the
field.  If field isn't found, TREE_NULL is returned and there are no
checks for this in the current code.

The tests will be fragile if they have to check Python version.  Test is
probably broken now on all systems using Python 3.12.

Reply via email to