https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98054
Bug ID: 98054 Summary: ICE: in pp_cxx_trait_expression, at cp/cxx-pretty-print.c:2671 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: foss at grueninger dot de Target Milestone: --- Created attachment 49646 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49646&action=edit Dumped file with -save-temps When compiling a C++ project with G++11, that works fine with G++ 10 and Clang++, I get the following output: In file included from /home/kiko/dune/complete/dune-functions/dune/functions/common/test/polymorphicsmallobjecttest.cc:7: /home/kiko/dune/complete/dune-functions/dune/functions/common/polymorphicsmallobject.hh: In instantiation of ‘class Dune::Functions::PolymorphicSmallObject<Base, 0>’: /usr/include/c++/11/type_traits:971:25: in pp_cxx_trait_expression, at cp/cxx-pretty-print.c:2671 44 | class PolymorphicSmallObject | ^~~~~~~~~~~~~~~~~~~~~~ 0x7f4b1a4c4349 __libc_start_main ???:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://bugs.opensuse.org/> for instructions. More details regarding my G++ 11: >g++-11 -v Using built-in specs. COLLECT_GCC=g++-11 COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/11/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go,d --enable-offload-targets=nvptx-none=/usr/nvptx-none,amdgcn-amdhsa=/usr/amdgcn-amdhsa, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/11 --enable-ssp --disable-libssp --disable-libvtv --enable-cet=auto --disable-libcc1 --disable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-libphobos --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-11 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.0 20201127 (experimental) [revision 67138ea1b041fe1637da6b3568f064f172d9358c] (SUSE Linux) == How to reproduce == With -save-temps I dumped the file and attached it. With the following command line, I can reproduce the problem: > /usr/bin/g++-11 -DENABLE_MPI=1 -DENABLE_SUITESPARSE=1 -DENABLE_SUPERLU=1 > -DENABLE_TBB=1 -DENABLE_UG=1 -DHAVE_CONFIG_H -DMETIS_API_VERSION=5 > -DMPICH_SKIP_MPICXX -DMPIPP_H -DMPI_NO_CPPBIND -DModelP -DOMPI_SKIP_MPICXX > -DUG_USE_NEW_DIMENSION_DEFINES -D_TBB_CPP0X > -I/home/kiko/dune/complete/dune-functions/build-cmake > -I/home/kiko/dune/complete/dune-functions -I/usr/include/python3.6m > -I/home/kiko/dune/complete/dune-common -I/home/kiko/dune/complete/dune-uggrid > -I/home/kiko/dune/complete/dune-geometry -I/home/kiko/dune/complete/dune-grid > -I/home/kiko/dune/complete/dune-typetree -I/home/kiko/dune/complete/dune-istl > -I/home/kiko/dune/complete/dune-localfunctions -isystem > /usr/lib64/mpi/gcc/openmpi/include -isystem /usr/include/suitesparse -isystem > /home/kiko/dune/zusatz/parmetis-4.0.3/include -isystem > /home/kiko/dune/zusatz/metis-5.1.0/include -std=c++17 -Wall -Wunused > -Wmissing-include-dirs -Wcast-align -Wno-sign-compare -Wno-cast-align -Wall > -pedantic -Wno-inconsistent-missing-override -O2 -Wno-unused-parameter > -fno-strict-aliasing -fstrict-overflow -g -fPIE -pthread -o > CMakeFiles/polymorphicsmallobjecttest.dir/polymorphicsmallobjecttest.cc.o -c > polymorphicsmallobjecttest.cc.ii