From 637e0eecb43e4a17f4e6ac7de38bf1ec70b8170b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 30 Jan 2010 11:31:30 -0800 Subject: [PATCH] New gccgo error message; match both compilers with one string. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtime.go b/test/runtime.go index 9507300a27..256873a7a9 100644 --- a/test/runtime.go +++ b/test/runtime.go @@ -16,5 +16,5 @@ package main import "runtime" func main() { - runtime.printbool(true); // ERROR "cannot refer|undefined identifier" + runtime.printbool(true); // ERROR "unexported" }