https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92441

--- Comment #2 from Hannes Hauswedell <h2+bugs at fsfe dot org> ---
(In reply to Martin Liška from comment #1)
> Can you please provide full command line of the GCC?

g++10 -std=c++17 -fconcepts dna4_test.ii

This triggers the ICE as mentioned in the original report. For The resulting
binary to link correctly, gtest has to be added as a static library.

The full invocation that generates the intermediate code is this:

cd /home/hannes/devel/seqan3-build/release10/alphabet/nucleotide &&
/usr/local/bin/ccache /usr/local/bin/g++10  -DSEQAN3_HAS_BZIP2=1
-DSEQAN3_HAS_ZLIB=1
-I/home/hannes/devel/seqan3-build/release10/vendor/googletest/googletest/include
-I/home/hannes/devel/seqan3/test/include -I/home/hannes/devel/seqan3/include
-isystem /home/hannes/devel/seqan3/submodules/sdsl-lite/include -isystem
/home/hannes/devel/seqan3/submodules/range-v3/include -isystem
/home/hannes/devel/seqan3/submodules/cereal/include 
-ftemplate-backtrace-limit=0 -fdiagnostics-color=always -std=c++17 -fconcepts
-save-temps -O3 -DNDEBUG   -pedantic -Wall -Wextra -Werror
-DNO_WARN_X86_INTRINSICS -pthread -o CMakeFiles/dna4_test.dir/dna4_test.cpp.o
-c /home/hannes/devel/seqan3/test/unit/alphabet/nucleotide/dna4_test.cpp



> And please paste output of when '-v' is added.

Using built-in specs.
COLLECT_GCC=g++10
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc10/gcc/x86_64-portbld-freebsd12.0/10.0.0/lto-wrapper
Target: x86_64-portbld-freebsd12.0
Configured with:
/wrkdirs/usr/ports/lang/gcc10-devel/work/gcc-10-20191103/configure
--enable-multilib --with-build-config=bootstrap-debug --disable-nls
--enable-gnu-indirect-function --libdir=/usr/local/lib/gcc10
--libexecdir=/usr/local/libexec/gcc10 --program-suffix=10
--with-as=/usr/local/bin/as --with-gmp=/usr/local
--with-gxx-include-dir=/usr/local/lib/gcc10/include/c++/
--with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection'
--with-system-zlib --enable-languages=c,c++,objc,fortran --prefix=/usr/local
--localstatedir=/var --mandir=/usr/local/man
--infodir=/usr/local/share/info/gcc10 --build=x86_64-portbld-freebsd12.0
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.0.0 20191103 (experimental) (FreeBSD Ports Collection) 
COLLECT_GCC_OPTIONS='-std=c++17' '-fconcepts' '-v' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 /usr/local/libexec/gcc10/gcc/x86_64-portbld-freebsd12.0/10.0.0/cc1plus
-fpreprocessed /tmp/dna4_test.ii -quiet -dumpbase dna4_test.ii -mtune=generic
-march=x86-64 -auxbase dna4_test -std=c++17 -version -fconcepts -o
/tmp//ccmJ4Que.s
GNU C++17 (FreeBSD Ports Collection) version 10.0.0 20191103 (experimental)
(x86_64-portbld-freebsd12.0)
        compiled by GNU C version 10.0.0 20191103 (experimental), GMP version
6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++17 (FreeBSD Ports Collection) version 10.0.0 20191103 (experimental)
(x86_64-portbld-freebsd12.0)
        compiled by GNU C version 10.0.0 20191103 (experimental), GMP version
6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: e7b6ef0d246e27cc0ec9ebf3a0ce4fdc
In file included from
/home/hannes/devel/seqan3/submodules/range-v3/include/range/v3/iterator/concepts.hpp:30,
                 from
/home/hannes/devel/seqan3/submodules/range-v3/include/range/v3/range/concepts.hpp:28,
                 from /home/hannes/devel/seqan3/include/seqan3/std/ranges:28,
                 from
/home/hannes/devel/seqan3/include/seqan3/core/concept/core_language.hpp:19,
                 from
/home/hannes/devel/seqan3/include/seqan3/alphabet/concept.hpp:17,
                 from
/home/hannes/devel/seqan3/test/unit/alphabet/nucleotide/../alphabet_constexpr_test_template.hpp:10,
                 from
/home/hannes/devel/seqan3/test/unit/alphabet/nucleotide/dna4_test.cpp:8:
/home/hannes/devel/seqan3/submodules/range-v3/include/range/v3/iterator/access.hpp:222:76:
internal compiler error: in strip_typedefs, at cp/tree.c:1681
  222 |                 is_swappable_with<iter_reference_t<I0>,
iter_reference_t<I1>>::value>
      |                                                                        
   ^~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to