]> Cypherpunks repositories - gostls13.git/commitdiff
New gccgo error message; match both compilers with one string.
authorIan Lance Taylor <iant@golang.org>
Sat, 30 Jan 2010 19:31:30 +0000 (11:31 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 30 Jan 2010 19:31:30 +0000 (11:31 -0800)
8g:
runtime.go:19: cannot refer to unexported name runtime.printbool

gccgo:
runtime.go:19:10: error: invalid reference to unexported identifier ‘runtime.printbool’

R=rsc
CC=golang-dev
https://golang.org/cl/194157

test/runtime.go

index 9507300a2717453e2fb8bc47ec047194ad81baae..256873a7a91fa3cfeaf00f542ab8ffad9c7c7b2a 100644 (file)
@@ -16,5 +16,5 @@ package main
 import "runtime"
 
 func main() {
-       runtime.printbool(true);        // ERROR "cannot refer|undefined identifier"
+       runtime.printbool(true);        // ERROR "unexported"
 }