https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61226
Bug ID: 61226 Summary: gccgo: hangs in sort_var_inits 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 Created attachment 32818 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32818&action=edit reproducer $ gccgo -v Using built-in specs. COLLECT_GCC=gccgo COLLECT_LTO_WRAPPER=libexec/gcc/x86_64-unknown-linux-gnu/4.10.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../configure --enable-languages=c,c++,go --disable-bootstrap --enable-checking=yes --disable-multilib --prefix=gcc_trunk/install Thread model: posix gcc version 4.10.0 20140516 (experimental) (GCC) The reproducer program is attached (it contains several packages, so you need to set GOPATH to the root of the tree). $ go build -compiler=gccgo main hangs in sort_var_inits at gcc/go/gofrontend/gogo.cc:1009 burning 100% of CPU.