Closed andybalholm closed 5 years ago
Hmm, I'm not sure what that is off the top of my head but is definitely a bug.
The special handling for incrementing pointers in transpileUnaryOperatorInc
is calling getSoleChildDeclRefExpr
, which only works if the item being incremented is a regular variable. Anything more complicated returns an error about an unsupported type of AST node. So I suppose that function needs to be replaced with one that can handle more types.
This C code:
produces an error: