https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Erik Schnetter from comment #0) > I am using GCC 10.3.0 on x86_64 GNU/Linux. GCC was built via Spack, and is > called from nvcc. > > I encounter the following ICE: ... > GCC 10.2.0 compiles the code without problems. I tried plain GCC 10.2.0 with the attached preprocessed source and it ICEs the same way. I suppose there might be some header differences? > To reproduce, compile the attached preprocessed source code with the options > > g++ -std=c++14 -c -x c++ -fPIC -fopenmp -Werror=return-type -pthread -O2 > -m64 -g -gdwarf-2 "AMReX_BlockMutex.cpp.ii" -o "AMReX_BlockMutex.cpp.o" It already crashes with just g++ -std=c++14 for me (since the crash is inside the C++ frontend).