cmd/cgo: Selector pointer shorthand does not operate with cgo structs named directly #9557
What version of Go are you using (go version)?
When a C variable containing a struct pointer is assigned to a Go variable, the shorthand applies to selector expressions using that variable. However, it seems that the shorthand does not apply in the case that the C variable is named directly, without the use of a temporary variable. I try to illustrate this in the example below: