thejerf/suture

gccgo(1.8) not compiling

jeesteve opened this issue · 1 comments

Hi,

I could not compile this code with gccgo (1.8). I don't know if a gccgo compiler frontend issue or not. just want to let you know about :)

func (s *Supervisor) sendControl(sm supervisorMessage) bool {
  | select {
  | case s.control <- sm:
  | return true
  | case _, _ = (<-s.liveness): <- here!!!
  | return false
  | }
  | }

/home/devuser/x-tools/powerpc-e500-linux-gnu/bin/powerpc-e500-linux-gnu-gccgo -L /home/devuser/github.com/syncthing/syncthing/vendor -L /home/devuser -c -fgo-pkgpath=/home/devuser/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture /home/devuser/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture/doc.go /home/devuser/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture/messages.go /home/devuser/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture/service.go /home/devuser/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture/supervisor.go -o /home/devuser/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture.o
/home/devuser/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture/supervisor.go:524:14: error: missing '<-'
case _, _ = (<-s.liveness):
^
/home/devuser/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture/supervisor.go:524:14: error: expected colon
/home/devuser/github.com/syncthing/syncthing/vendor/github.com/thejerf/suture/supervisor.go:524:28: error: expected ';' or '}' or newline
case _, _ = (<-s.liveness):
^

Kind regards

Issue linked to: golang/go#20923