https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92778
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Because "illegal instruction" happens if the executable contains an instruction that your CPU doesn't support. And that should never happen if you built GCC correctly. When I try to compile with gcc-9-branch it I get: g++: internal compiler error: Segmentation fault signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. which suggests a stackoverflow or other memory problem. With trunk I get: In file included from /home/hannes/devel/lambda/submodules/seqan3/include/seqan3/std/iterator:24, from /home/hannes/devel/lambda/submodules/seqan3/include/seqan3/core/type_traits/iterator.hpp:20, from /home/hannes/devel/lambda/submodules/seqan3/include/seqan3/core/type_traits/range.hpp:20, from /home/hannes/devel/lambda/submodules/seqan3/include/seqan3/range/views/translate_join.hpp:18, from /home/hannes/devel/lambda/src/seqan2seqan3.hpp:7, from /home/hannes/devel/lambda/src/lambda.cpp:22: /home/hannes/devel/lambda/submodules/seqan3/submodules/range-v3/include/range/v3/iterator/access.hpp:222:76: internal compiler error: in strip_typedefs, at cp/tree.c:1681 0x675f3a strip_typedefs(tree_node*, bool*, unsigned int) /home/jwakely/src/gcc/gcc/gcc/cp/tree.c:1681 0x675f3a strip_typedefs(tree_node*, bool*, unsigned int) /home/jwakely/src/gcc/gcc/gcc/cp/tree.c:1461 0x9f8792 canonicalize_type_argument /home/jwakely/src/gcc/gcc/gcc/cp/pt.c:7935 0xa230db coerce_template_parms /home/jwakely/src/gcc/gcc/gcc/cp/pt.c:8778 0xa336b9 lookup_template_class_1 /home/jwakely/src/gcc/gcc/gcc/cp/pt.c:9615 0xa336b9 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) /home/jwakely/src/gcc/gcc/gcc/cp/pt.c:9985 0xa5d73b finish_template_type(tree_node*, tree_node*, int) /home/jwakely/src/gcc/gcc/gcc/cp/semantics.c:3396 0x9e44ad cp_parser_template_id /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:16544 0x9e473a cp_parser_class_name /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:23416 0x9e10bb cp_parser_qualifying_entity /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:6705 0x9e10bb cp_parser_nested_name_specifier_opt /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:6388 0x9ddfd0 cp_parser_simple_type_specifier /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:17925 0x9df247 cp_parser_postfix_expression /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:7103 0x9e78cf cp_parser_unary_expression /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:8472 0x9bf9af cp_parser_cast_expression /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:9365 0x9c0605 cp_parser_simple_cast_expression /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:29048 0x9c0605 cp_parser_binary_expression /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:9533 0x9c1247 cp_parser_assignment_expression /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:9768 0x9e318a cp_parser_template_argument /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:17196 0x9e318a cp_parser_template_argument_list /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:16895 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.