https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79267
Bug ID: 79267 Summary: internal compiler error with -O3 or -O2 -finline-functions Product: gcc Version: 6.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: g.chauvat at laposte dot net Target Milestone: --- Created attachment 40614 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40614&action=edit reduced preprocessed file Hi, The compilation of Nektar++ fails with an internal compiler error when using -O3 or -O2 -finline-functions with g++ 6.3.1 on Arch Linux. It compiles well with -O2. - The full preprocessed file weighs 5 MB: https://fichiers.fschhh.net/fichiers1/Interp.ii a version reduced with creduce is attached, I hope it triggers the same problem. - compiler options: COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/lto-wrapper Cible : x86_64-pc-linux-gnu Configuré avec: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release Modèle de thread: posix gcc version 6.3.1 20170109 (GCC) - log: /home/guillaume/local/src/nektar++/library/LibUtilities/Foundations/Interp.cpp: Dans la fonction « void Nektar::LibUtilities::Interp2D(const Nektar::LibUtilities::PointsKey&, const Nektar::LibUtilities::PointsKey&, const NekDouble*, const Nektar::LibUtilities::PointsKey&, const Nektar::LibUtilities::PointsKey&, Nektar::NekDouble*) »: /home/guillaume/local/src/nektar++/library/LibUtilities/Foundations/Interp.cpp:166:53: erreur interne du compilateur : dans assign_temp, à function.c:961 I1 = PointsManager()[fpoints1]->GetI(tpoints1); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~