We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typedef
typedef int I1 __attribute__((aligned(8))); typedef I1 I2 __attribute__((aligned(1))); _Static_assert(sizeof(I2) == 4,"record I2 wrong sizeof"); _Static_assert(_Alignof(I2) == 1, "record I2 wrong alignment");
the alignment of I2 fails. It returns 8. It should be one.
It looks like I2 has I1 attributes as well as its own. Seems like typedefs "roll up" attributes of the types they refer to.
typedef: 'attributed(int)' attr: aligned alignment: Attribute.Alignment{ .node = Tree.NodeIndex.none, .requested = 8 } name: I1
typedef: 'attributed(int)' attr: aligned alignment: Attribute.Alignment{ .node = Tree.NodeIndex.none, .requested = 8 } attr: aligned alignment: Attribute.Alignment{ .node = Tree.NodeIndex.none, .requested = 1 } name: I2
The text was updated successfully, but these errors were encountered:
Some more info on this. It looks like I2 has I1 attributes as well as it's own. I think this is the main issue.
I2
I1
typedef: 'attributed(int)' attr: aligned alignment: Attribute.Alignment{ .node = Tree.NodeIndex.none, .requested = 8 } name: I1 typedef: 'attributed(int)' attr: aligned alignment: Attribute.Alignment{ .node = Tree.NodeIndex.none, .requested = 8 } attr: aligned alignment: Attribute.Alignment{ .node = Tree.NodeIndex.none, .requested = 1 } name: I2
Sorry, something went wrong.
fix for Vexu#332
cbd62d1
b4def26
No branches or pull requests
the alignment of I2 fails. It returns 8. It should be one.
It looks like I2 has I1 attributes as well as its own. Seems like typedefs "roll up" attributes of the types they refer to.
typedef: 'attributed(int)'
attr: aligned alignment: Attribute.Alignment{ .node = Tree.NodeIndex.none, .requested = 8 }
name: I1
typedef: 'attributed(int)'
attr: aligned alignment: Attribute.Alignment{ .node = Tree.NodeIndex.none, .requested = 8 }
attr: aligned alignment: Attribute.Alignment{ .node = Tree.NodeIndex.none, .requested = 1 }
name: I2
The text was updated successfully, but these errors were encountered: