https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90548
Bug ID: 90548 Summary: [9/10 Regression] ICE in tsubst_copy_and_build, at cp/pt.c:18877 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- This changed between 20190127 and 20190203 : $ cat z1.cc struct S { S (void ()); } foo ([] (auto ...) {}); $ g++-9-20190127 -c z1.cc $ $ g++-10-20190519 -c z1.cc z1.cc: In instantiation of 'static decltype (((const<lambda(auto:1 ...)>*)0)->operator()<auto:1 ...>(static_cast<auto:1&>(__lambda0::_FUN::<unnamed>) ...))<lambda(auto:1 ...)>::_FUN(auto:1 ...) [with auto:1 = {}; decltype (((const<lambda(auto:1 ...)>*)0)->operator()<auto:1 ...>(static_cast<auto:1&>(__lambda0::_FUN::<unnamed>) ...)) = void]': z1.cc:2:21: required from '<lambda(auto:1 ...)>::operator decltype (((const<lambda(auto:1 ...)>*)0)->operator()<auto:1 ...>(static_cast<auto:1&>(__lambda0::_FUN::<unnamed>) ...)) (*)(auto:1 ...)() const [with auto:1 = {}; decltype (((const<lambda(auto:1 ...)>*)0)->operator()<auto:1 ...>(static_cast<auto:1&>(__lambda0::_FUN::<unnamed>) ...)) = void]' z1.cc:2:22: required from here z1.cc:2:21: internal compiler error: Segmentation fault 2 | foo ([] (auto ...) {}); | ^ 0xb8ae7f crash_signal ../../gcc/toplev.c:326 0x6dd614 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:18877 0x6e6609 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:18242 0x6e6609 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:17918 0x6e557a tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:17034 0x6e6291 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:17325 0x6e4764 instantiate_decl(tree_node*, bool, bool) ../../gcc/cp/pt.c:24755 0x6f9a0b instantiate_pending_templates(int) ../../gcc/cp/pt.c:24871 0x651755 c_parse_final_cleanups() ../../gcc/cp/decl2.c:4819