https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82080
Bug ID: 82080 Summary: ICE: Segmentation fault Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 42105 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42105&action=edit Preprocessed output created with -freport-bug [jamrial@ArchVM ~]$ c++ -std=c++17 -c ccBqWFGo.ii /home/jamrial/range-v3/test/algorithm/partial_sort_copy.cpp: In lambda function: /home/jamrial/range-v3/test/algorithm/partial_sort_copy.cpp:50:44: internal compiler error: Segmentation fault int* e = output + std::min(N, M); ^ 0xd8570f crash_signal /home/jamrial/gcc-svn/gcc/toplev.c:341 0x62730f hash_table<hash_map<tree_node*, tree_node*, simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*> >::hash_entry, xcallocator>::find_slot_with_hash(tree_node* const&, unsigned int, insert_option) /home/jamrial/gcc-svn/gcc/hash-table.h:874 0x6274ec hash_map<tree_node*, tree_node*, simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*> >::put(tree_node* const&, tree_node* const&) /home/jamrial/gcc-svn/gcc/hash-map.h:136 0x775c09 register_local_specialization(tree_node*, tree_node*) /home/jamrial/gcc-svn/gcc/cp/pt.c:1906 0x775c09 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /home/jamrial/gcc-svn/gcc/cp/pt.c:18153 0x7750ba tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /home/jamrial/gcc-svn/gcc/cp/pt.c:17549 0x77524c tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /home/jamrial/gcc-svn/gcc/cp/pt.c:17070 0x624723 fold_non_dependent_expr(tree_node*) /home/jamrial/gcc-svn/gcc/cp/constexpr.c:4936 0x761b21 build_non_dependent_expr(tree_node*) /home/jamrial/gcc-svn/gcc/cp/pt.c:24955 0x81a82a build_x_binary_op(unsigned int, tree_code, tree_node*, tree_code, tree_node*, tree_code, tree_node**, int) /home/jamrial/gcc-svn/gcc/cp/typeck.c:3954 0x71bcee cp_parser_binary_expression /home/jamrial/gcc-svn/gcc/cp/parser.c:9271 0x71c474 cp_parser_assignment_expression /home/jamrial/gcc-svn/gcc/cp/parser.c:9404 0x71c8a7 cp_parser_constant_expression /home/jamrial/gcc-svn/gcc/cp/parser.c:9674 0x71d934 cp_parser_initializer_clause /home/jamrial/gcc-svn/gcc/cp/parser.c:21765 0x71ed2b cp_parser_initializer /home/jamrial/gcc-svn/gcc/cp/parser.c:21705 0x744710 cp_parser_init_declarator /home/jamrial/gcc-svn/gcc/cp/parser.c:19547 0x74bc66 cp_parser_simple_declaration /home/jamrial/gcc-svn/gcc/cp/parser.c:12980 0x74cbe5 cp_parser_block_declaration /home/jamrial/gcc-svn/gcc/cp/parser.c:12805 0x74d6e9 cp_parser_declaration_statement /home/jamrial/gcc-svn/gcc/cp/parser.c:12399 0x727253 cp_parser_statement /home/jamrial/gcc-svn/gcc/cp/parser.c:10877 [jamrial@ArchVM ~]$ c++ -v Using built-in specs. COLLECT_GCC=c++ COLLECT_LTO_WRAPPER=/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /home/jamrial/gcc-svn/configure --prefix=/usr/local --libdir=/usr/local/lib --libexecdir=/usr/local/lib --mandir=/usr/local/share/man --infodir=/usr/local/share/info --enable-languages=c,c++,lto --enable-shared --enable-threads=posix --disable-bootstrap --with-system-zlib --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 Thread model: posix gcc version 8.0.0 20170901 (experimental) (GCC)