diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go index 84cd2e816a..3ee4461352 100644 --- a/src/cmd/cgo/gcc.go +++ b/src/cmd/cgo/gcc.go @@ -1009,7 +1009,7 @@ func (p *Package) rewriteRef(f *File) { if r.Name.Kind == "var" { expr = &ast.StarExpr{Star: (*r.Expr).Pos(), X: expr} } else { - error_(r.Pos(), "only C variables allowed in selector expression", fixGo(r.Name.Go)) + error_(r.Pos(), "only C variables allowed in selector expression %s", fixGo(r.Name.Go)) } case "type":