rikki322
rikki322
`c2go` incorrectly translates C unsigned integer initializations with out-of-range constants into direct Go `uint32` constant conversions. In C, assigning an out-of-range integer constant to `unsigned int` is valid. If `unsigned...
`c2go` incorrectly translates an initializer for an array whose element type comes from a C `typedef`. In C, `typedef int Integer;` makes `Integer` an alias for `int`, so initializing an...
`c2go` incorrectly translates a C union type declared inside a function. In C, a `union` can be declared inside a function scope. However, `c2go` translates the local union into a...
`c2go` translates a C comparison expression used as a `printf("%d")` argument directly into a Go boolean expression. In C, the result of `x == z` is an integer value, either...
`c2go` incorrectly translates a C union initializer into a Go struct literal. In C, `union Number n = {42};` initializes the first member of the union. However, `c2go` represents the...
`c2go` fails to translate C aggregate initializers where some elements or fields are omitted and should be default-initialized. In C, omitted elements or fields in aggregate initializers are initialized to...
`c2go` incorrectly translates a C fixed-size array of enum values into an invalid Go variable declaration. In C,` enum Color colors[3]` declares a fixed-size array whose element type is `enum...
When translating a C array of function pointers and an indexed call through that array, c2go generates invalid Go code. The generated code attempts to convert an `unsafe.Pointer` value to...
When translating a C function pointer initialized with the explicit address of a function, c2go declares the corresponding Go function variable but does not initialize it: ``` var func_ptr func(int32,...
When translating a C comma expression, c2go may generate invalid Go code that takes the address of a non-addressable expression. In this case, the comma expression appears inside the right-hand...