Repository navigation
has_unique_object_representations returns false for classes whose base has only inherited members #290
jakub-labenski
started this conversation in
Issue Triage - General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Issue Summary
type_has_unique_object_representations(folding.c) treats a direct base class as empty when its ownfield_listisNULL, ignoring the data inherited from its bases. Such a base contributes 0 bytes to the computed layout, so the tail-padding check fails and the trait wrongly evaluates tofalse.Observed Behavior
Reproducer:
edg-docker-test and then edg-test-run-diff returns:
Expected Behavior
Code should compile correctly.
Additional Details
No response
I acknowledge that:
All reactions