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
As you can see, x : 16 is mistakenly truncated and treated as an identifier instead of a name like y : 16.
The text was updated successfully, but these errors were encountered:
d3dave
changed the title
Incorrect parsing of multiple bitfield declarators in a single declaration
Incorrect parsing of multiple declarators in a single declaration
Apr 29, 2024
This is unfortunately a known limitation of the current parser. Would love to support this since I also regularly run into this issue. Not sure how feasible it is with the current parser though. Ideally we get a better parser with perhaps a proper AST down the line.
The definition
struct X { int x : 16, y : 16; }
gets parsed incorrectly into the following tokens:As you can see,
x : 16
is mistakenly truncated and treated as an identifier instead of a name likey : 16
.The text was updated successfully, but these errors were encountered: