You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chwarr
changed the title
Code generation does not detect out-or-range values for field defaults
Code generation does not detect out-of-range values for field defaults
Feb 4, 2016
- Fail when struct field has default value of 'nothing'
- Fail when enum field doesn't have default value
- Validate aliases' default value
- Validate default value type mistmatches
- Validate default value out-of-range values
Fixes#177, fixes#164, fixes#128, fixes#73, fixes#72
- Validate default value type mistmatches (fixes#72, fixes#128)
- Validate default value out-of-range values (fixes#73)
- Fail when struct field has default value of 'nothing' (fixes#164)
- Fail when enum field doesn't have default value (fixes#177)
- Validate default value of type aliases
This .bond file does not cause any code generation errors, though one would be expected, as the default value cannot be stored in the field.
Here's the generated _types.cpp when running
.\gbc.exe c++ .\type_range.bond
Version details:
The text was updated successfully, but these errors were encountered: