New issue
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
The force_align
attribute is allowed on enums, but does nothing [all languages]
#7515
Comments
May I ask why you would want to force align an enum to something other than the backing type alignment? I'm leaning to rejecting if by |
I don't think I see a good reason for it. However I am not a good authority on whether it's useful, since I don't think having alignment in the language is something that is beneficial. |
Sure, then why are you adding the Thanks for the report, I'll see about forbidding from being applied to enums. |
We are aiming for Also, since that flatbuffers does have alignment built-in to the language, using |
SG. Since adding the attribute seems to have no negative effect, this will have slightly lower priority to fix. |
This schema is accepted by
flatc
:However it generates the same code as the following schema:
I think this should work the same as
force_align
on structs. Alternatively it could be rejected byflatc
.I have validated that the bug is present in versions 2.0.0, 2.0.7 and the current master.
The text was updated successfully, but these errors were encountered: