https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69189
Bug ID: 69189 Summary: [concepts] ICE: segmentation fault in instantiate_template_1 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Created attachment 37262 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37262&action=edit Preprocessed source Mechanically reduced preprocessed source attached. This is using 6.0.0 20160107, compiled with: g++-trunk -std=c++1z prepro.ii Error & stacktrace: prepro.ii: In substitution of 'template<class Value> {anonymous}::any_base::any_base(Value&&) requires predicate( <unnamed>::no_special_members_interference<<unnamed>::any_base, Value>::value) [with Value = {anonymous}::any_base]': prepro.ii:33:7: required from here prepro.ii:33:7: internal compiler error: Segmentation fault } a = 0 ^ 0xab949f crash_signal ../../gcc/gcc/toplev.c:334 0x60f252 instantiate_template_1 ../../gcc/gcc/cp/pt.c:17269 0x60f252 instantiate_template(tree_node*, tree_node*, int) ../../gcc/gcc/cp/pt.c:17307 0x60ef6d instantiate_template_1 ../../gcc/gcc/cp/pt.c:17166 0x60ef6d instantiate_template(tree_node*, tree_node*, int) ../../gcc/gcc/cp/pt.c:17307 0x615c02 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, bool, bool) ../../gcc/gcc/cp/pt.c:17666 0x5cc928 add_template_candidate_real ../../gcc/gcc/cp/call.c:3091 0x5cd0f3 add_template_candidate ../../gcc/gcc/cp/call.c:3169 0x5cd0f3 add_candidates ../../gcc/gcc/cp/call.c:5341 0x5cd6c1 build_new_method_call_1 ../../gcc/gcc/cp/call.c:8270 0x5cd6c1 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, tree_node**, int) ../../gcc/gcc/cp/call.c:8466 0x5c738a build_special_member_call(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, int) ../../gcc/gcc/cp/call.c:8003 0x5c85b4 build_temp ../../gcc/gcc/cp/call.c:6174 0x5c85b4 convert_like_real ../../gcc/gcc/cp/call.c:6578 0x5d1117 build_user_type_conversion(tree_node*, tree_node*, int, int) ../../gcc/gcc/cp/call.c:3871 0x694ddd ocp_convert(tree_node*, tree_node*, int, int, int) ../../gcc/gcc/cp/cvt.c:879 0x69cd35 expand_default_init ../../gcc/gcc/cp/init.c:1688 0x69cd35 expand_aggr_init_1 ../../gcc/gcc/cp/init.c:1857 0x69cfc5 build_aggr_init(tree_node*, tree_node*, int, int) ../../gcc/gcc/cp/init.c:1606 0x5d94ad build_aggr_init_full_exprs ../../gcc/gcc/cp/decl.c:5946