https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99916
Bug ID: 99916 Summary: ICE Segmentation fault when erroneous structured bindings appears in requires-clause Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- https://godbolt.org/z/cW8367TTr struct S {} s; template <S> concept C = requires { [a] = s; }; static_assert(C<s>); <source>:2:41: internal compiler error: Segmentation fault 2 | template <S> concept C = requires { [a] = s; }; | ~~~~^~~ 0x1cfcba9 internal_error(char const*, ...) ???:0 0x7779e3 pp_cxx_parameter_mapping(cxx_pretty_printer*, tree_node*) ???:0 0x7e2a68 maybe_print_single_constraint_context(diagnostic_context*, tree_node*) ???:0 0x1cfb736 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*) ???:0 0x1cfc13d inform(unsigned int, char const*, ...) ???:0 0x73f30f diagnose_constraints(unsigned int, tree_node*, tree_node*) ???:0 0x98aba3 finish_static_assert(tree_node*, tree_node*, unsigned int, bool, bool) ???:0 0x8e14fd c_parse_file() ???:0 0xa60102 c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source if appropriate.