[Bug go/61253] New: gccgo: spurious "error: expected '<-' or '='" [GoSmith]

dvyukov at google dot com gcc-bugzilla@gcc.gnu.org
Tue May 20 13:18:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61253

            Bug ID: 61253
           Summary: gccgo: spurious "error: expected '<-' or '='"
                    [GoSmith]
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: dvyukov at google dot com

gcc version 4.10.0 20140516 (experimental) (GCC)

The program is:

package main
func main() {
    c := make(chan int)
    v := new(int)
    b := new(bool)
    select {
    case (*v), (*b) = <-c:
    }

}

$ go build -compiler=gccgo /tmp/switch.go
src.go:8:11: error: expected '<-' or '='
  case (*v), (*b) = <-c:



More information about the Gcc-bugs mailing list