Compiler segfault when building 2.13 with GCC 8.x

From: fabricio (fcannini_at_gmail.com)
Date: Wed May 15 2019 - 13:51:28 CDT

Hello there

I'm trying to build NAMD 2.13 with both GCC 8.2.0 and 8.3.0 and the same
error happens.
Thought I'd give a heads-up to the list.
========================================================================
/opt/ohpc/pub/compiler/gcc/8.3.0/bin/g++ -std=c++11
-I/opt/spack/opt/spack/linux-centos7-x86_64/gcc-8.3.0/charmpp-6.9.0-vkhvutv6agvssedlaogkexykapkuxez4/include
-DCMK_OPTIMIZE=1 -Isrc -Iinc -Iplugins/include -Icolvars/src
-DSTATIC_PLUGIN
-I/opt/spack/opt/spack/linux-centos7-x86_64/gcc-8.3.0/tcl-8.6.8-k3mmizyillbwihpqlpncimy3nlvaikul/include
-DNAMD_TCL
-I/opt/spack/opt/spack/linux-centos7-x86_64/gcc-8.3.0/fftw-3.3.8-ulha64jgkjr3z35tbcys4p3wltg2j7ax/include
-DNAMD_FFTW -DNAMD_FFTW_3 -DNAMD_VERSION=\"2.13\"
-DNAMD_PLATFORM=\"linux-x86_64-netlrts\"
-DREMOVE_PROXYRESULTMSG_EXTRACOPY -DNODEAWARE_PROXY_SPANNINGTREE
-DUSE_NODEPATCHMGR -DBONDED_CUDA -DUSE_HOMETUPLES -DUSE_CKLOOP=1 -m64
-O3 -fexpensive-optimizations -ffast-math -o obj/GoMolecule.o -c
src/GoMolecule.C
during GIMPLE pass: recip
src/GoMolecule.C: In member function 'BigReal
Molecule::get_go_force2(BigReal, BigReal, BigReal, int, int, BigReal*,
BigReal*) const':
src/GoMolecule.C:1456:9: internal compiler error: Segmentation fault
  BigReal Molecule::get_go_force2(BigReal x,
          ^~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
========================================================================

I intend to submit a bug to GCC devs.
Is there a workaround while they work on a fix?

[ ]'s

This archive was generated by hypermail 2.1.6 : Fri Dec 06 2019 - 23:20:38 CST