Thanks. I can recreate the error with 1.11.2, but the file compiles with tip. I would guess that this is https://golang.org/issue/28616, which should be fixed in 1.11.3.
Ian On Tue, Nov 20, 2018 at 12:21 AM, Jan Mercl <0xj...@gmail.com> wrote: > Hi list, > > can someone please paste the issue report and the enclosures to the issue > tracker? Thanks in advance. > > PS: Sorry for the inconvenience. I'm not aware of any other way how to > report an issue w/o having a Github account. > > ----8<----- > > # What version of Go are you using (go version)? > > go version go1.11.2 linux/amd64 > > # Does this issue reproduce with the latest release? > > yes > > # What operating system and processor architecture are you using (go env)? > > GOARCH="amd64" > GOBIN="" > GOCACHE="/home/jnml/.cache/go-build" > GOEXE="" > GOFLAGS="" > GOHOSTARCH="amd64" > GOHOSTOS="linux" > GOOS="linux" > GOPATH="/home/jnml" > GOPROXY="" > GORACE="" > GOROOT="/home/jnml/go" > GOTMPDIR="" > GOTOOLDIR="/home/jnml/go/pkg/tool/linux_amd64" > GCCGO="gccgo" > CC="gcc" > CXX="g++" > CGO_ENABLED="1" > GOMOD="" > CGO_CFLAGS="-g -O2" > CGO_CPPFLAGS="" > CGO_CXXFLAGS="-g -O2" > CGO_FFLAGS="-g -O2" > CGO_LDFLAGS="-g -O2" > PKG_CONFIG="pkg-config" > GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 > -fdebug-prefix-map=/tmp/go-build477943012=/tmp/go-build > -gno-record-gcc-switches" > > # What did you do? > > $ cd modernc.org/ccgo/v2 > $ make ; date > > # What did you expect to see? > > Tests pass > > # What did you see instead? > > ... > --- FAIL: TestCSmith (26.68s) > ... > ./main.go:2858:16: internal compiler error: 'xfunc_22': panic during > fuse while compiling xfunc_22: > > runtime error: index out of range > > goroutine 21 [running]: > cmd/compile/internal/ssa.Compile.func1(0xc001d35218, 0xc001878580) > /home/jnml/go/src/cmd/compile/internal/ssa/compile.go:38 +0xc6 > panic(0xc445e0, 0x12dd7e0) > /home/jnml/go/src/runtime/panic.go:513 +0x1b9 > cmd/compile/internal/ssa.fuseBlockPlain(0xc0021e79e0, 0x47be00) > /home/jnml/go/src/cmd/compile/internal/ssa/fuse.go:123 +0x781 > cmd/compile/internal/ssa.fuse(0xc001878580) > /home/jnml/go/src/cmd/compile/internal/ssa/fuse.go:19 +0x5f > cmd/compile/internal/ssa.Compile(0xc001878580) > /home/jnml/go/src/cmd/compile/internal/ssa/compile.go:70 +0x30e > cmd/compile/internal/gc.buildssa(0xc00070da20, 0x3, 0x0) > /home/jnml/go/src/cmd/compile/internal/gc/ssa.go:211 +0xab0 > cmd/compile/internal/gc.compileSSA(0xc00070da20, 0x3) > /home/jnml/go/src/cmd/compile/internal/gc/pgen.go:259 +0x39 > cmd/compile/internal/gc.compileFunctions.func2(0xc00199cc60, > 0xc00046ff90, 0x3) > /home/jnml/go/src/cmd/compile/internal/gc/pgen.go:323 +0x49 > created by cmd/compile/internal/gc.compileFunctions > /home/jnml/go/src/cmd/compile/internal/gc/pgen.go:321 +0x11a > > > > Please file a bug report including a short program that triggers the > error. > https://golang.org/issue/new > cc 11 ccgo 11 build 10 run 10 ok 10 (90.91%) csmith 11 (1m0s) > > # Additonal info > > ==== jnml@e5-1650:~/src/modernc.org/crt> git --no-pager log -1 > commit 5f8d6e9c3cdc02120ec50c76797394e5270e63d2 (HEAD -> master, > origin/master, origin/HEAD, wips, ok) > Author: Jan Mercl <0xj...@gmail.com> > Date: Mon Nov 19 22:53:42 2018 +0100 > > Regenerate with latest ccgo > ==== jnml@e5-1650:~/src/modernc.org/crt> cd cc/v2/ > /home/jnml/src/modernc.org/cc/v2 > ==== jnml@e5-1650:~/src/modernc.org/cc/v2> git --no-pager log -1 > commit 170a5542105865085169772d9fa6c91ebb3b5f97 (HEAD -> master, > origin/master, origin/HEAD, wips, ok) > Author: Jan Mercl <0xj...@gmail.com> > Date: Mon Nov 19 19:58:05 2018 +0100 > > Track labels&gotos > ==== jnml@e5-1650:~/src/modernc.org/cc/v2> cd ccgo/v2/ > /home/jnml/src/modernc.org/ccgo/v2 > ==== jnml@e5-1650:~/src/modernc.org/ccgo/v2> git --no-pager log -1 > commit e5daa419daa52e28323540743a8d47a74e48de00 (HEAD -> master, > origin/master, origin/HEAD, ok) > Author: Jan Mercl <0xj...@gmail.com> > Date: Mon Nov 19 22:55:18 2018 +0100 > > Start rendering safe iteration statements w/o jumps > ==== jnml@e5-1650:~/src/modernc.org/ccgo/v2> > > -- > > -j > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.