]> Cypherpunks repositories - gostls13.git/commitdiff
- removed misleading comment in bug041.go
authorRobert Griesemer <gri@golang.org>
Fri, 8 Aug 2008 23:12:34 +0000 (16:12 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 8 Aug 2008 23:12:34 +0000 (16:12 -0700)
- removed bug042.go - not a bug according to updated spec

R=r
DELTA=43  (5 added, 36 deleted, 2 changed)
OCL=14008
CL=14010

test/bugs/bug041.go
test/bugs/bug042.go [deleted file]
test/golden.out

index 709b774d05a839a884f8d219fe0514a83dd0d09d..1a6e0dde801039ffca70033c5ddafb2ef8e76f46 100644 (file)
@@ -13,11 +13,3 @@ type S struct {
 func main() {
   var s S;
 }
-
-/*
-Another problem with implicit forward declarations (as in this program on line 6)
-is that it is not clear in which scope the type (here "T") should be declared.
-This is the main reason why we should not allow implicit forward declarations at all,
-and instead have an explicit type forward declaration. For more on this subject
-see bug042.go.
-*/
diff --git a/test/bugs/bug042.go b/test/bugs/bug042.go
deleted file mode 100644 (file)
index 9c873ab..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2009 The Go Authors.  All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// $G $D/$F.go || echo BUG: compilation should succeed
-
-package main
-
-type T  // BUG forward declaration should be accepted
-type S struct {
-  p *T
-}
-
-type T struct {
-  p *S
-}
-
-func main() {
-  var s S;
-}
-
-/*
-Per discussion w/ Ken, some time ago, we came to the conclusion that explicit
-forward declarations (as on line 5 in this program) are preferrable over
-implicit forward declarations because they make it explicit in which scope a
-type is to be declared fully, eventually. As an aside, the machinery for it is
-almost free in the compiler (one extra 'if' as far as I can tell).
-*/
index 8ae432b1d5109cafe05eacd9a032782bce3c8595..c5b823e879f2bf7acb37e1a59108f28e319ab5e7 100644 (file)
@@ -71,10 +71,6 @@ BUG: compilation succeeds incorrectly
 =========== bugs/bug041.go
 BUG: compilation succeeds incorrectly
 
-=========== bugs/bug042.go
-bugs/bug042.go:6: syntax error
-BUG: compilation should succeed
-
 =========== bugs/bug046.go
 bugs/bug046.go:7: illegal <this> pointer
 BUG: known to fail incorrectly
@@ -136,8 +132,8 @@ outer loop top k 1
 k not zero
 panic on line 310 PC=0x1362
 0x1362?zi
-       main·main(1, 0, 1606414952, ...)
-       main·main(0x1, 0x7fff5fbff268, 0x0, ...)
+       main·main(1, 0, 1606416392, ...)
+       main·main(0x1, 0x7fff5fbff808, 0x0, ...)
 BUG: crashes
 Trace/BPT trap          ./$A.out
 
@@ -192,6 +188,11 @@ Bus error               $G $D/$F.go
 4882
 BUG: succeeds incorrectly
 
+=========== bugs/bug087.go
+bugs/bug087.go:8: illegal combination of literals LEN 9
+bugs/bug087.go:8: illegal combination of literals LEN 9
+BUG: fails incorrectly
+
 =========== fixedbugs/bug025.go
 fixedbugs/bug025.go:7: variable exported but not defined: Foo