]> Cypherpunks repositories - gostls13.git/commitdiff
Match gccgo error messages.
authorIan Lance Taylor <iant@golang.org>
Tue, 18 Aug 2009 00:40:52 +0000 (17:40 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 18 Aug 2009 00:40:52 +0000 (17:40 -0700)
bug165.go:13:6: error: invalid recursive type 'S'

This is a different line from the 6g error message, which is
"invalid map key type".  I accomodated both compilers by
merging the line.

bug188.go:13:2: error: unexpected reference to package

I made the error message less specific, which I think is fine
here.

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=33398
CL=33426

test/fixedbugs/bug165.go
test/fixedbugs/bug188.go

index a4fe715c2cf470eb5c9576c1a27cc3ca42195564..8ce67a46db574fa73c830f8164926a8f2c2b6054 100644 (file)
@@ -11,5 +11,5 @@ type I interface {
 }
 
 type S struct {
-       m map[S] bool;  // ERROR "map key type|complete"
+       m map[S] bool;  // ERROR "map key type"
 }
index cbd421bb7924b6810a6aebcf2b421065c7f83f72..3851cb672c91e95b1fdb86b9e9df8ff6cf476f92 100644 (file)
@@ -10,5 +10,5 @@ import "sort"
 
 func main() {
        var x int;
-       sort(x);        // ERROR "package.*selector"
+       sort(x);        // ERROR "package"
 }