]> Cypherpunks repositories - gostls13.git/commitdiff
compiler bug: infinite recursion in subtype()
authorRob Pike <r@golang.org>
Thu, 17 Jul 2008 18:04:44 +0000 (11:04 -0700)
committerRob Pike <r@golang.org>
Thu, 17 Jul 2008 18:04:44 +0000 (11:04 -0700)
SVN=127822

test/bugs/bug071.go [new file with mode: 0644]

diff --git a/test/bugs/bug071.go b/test/bugs/bug071.go
new file mode 100644 (file)
index 0000000..8af5462
--- /dev/null
@@ -0,0 +1,22 @@
+// $G $D/$F.go || echo BUG: compiler crashes
+
+// 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.
+
+package main
+
+type rat struct  {
+       den  int;
+}
+
+func (u *rat) pr() {
+}
+
+type dch struct {
+       dat *chan  *rat;
+}
+
+func dosplit(in *dch){
+       dat := <-in.dat;
+}