https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117152
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- The backtrace with locations is: 117152.cc:3:48: error: could not convert ‘{0}’ from ‘<brace-enclosed initializer list>’ to ‘S<int>&&’ 3 | friend constexpr S<int>::S(S<int>&& = {0}) noexcept; | ^~~~~~~~ | | | <brace-enclosed initializer list> ‘ Segmentation fault 0x2d6b0b2 internal_error(char const*, ...) ../../gcc/diagnostic-global-context.cc:491 0x1172d5b crash_signal ../../gcc/toplev.cc:319 0x5b045f dump_function_name ../../gcc/cp/error.cc:2033 0x5af2ea dump_function_decl ../../gcc/cp/error.cc:1838 0x5abf61 dump_decl ../../gcc/cp/error.cc:1427 0x5b6b80 decl_to_string ../../gcc/cp/error.cc:3324 0x5bad63 cp_printer ../../gcc/cp/error.cc:4497 0x2d98ffb pretty_printer::format(text_info*, urlifier const*) ../../gcc/pretty-print.cc:1774 0xad8a0e pp_format(pretty_printer*, text_info*, urlifier const*) ../../gcc/pretty-print.h:575 0x2d59a39 diagnostic_context::report_diagnostic(diagnostic_info*) ../../gcc/diagnostic.cc:1472 0x2d5a0de diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, __va_list_tag (*) [1], diagnostic_t) ../../gcc/diagnostic.cc:1618 0x2d6a369 permerror(unsigned int, char const*, ...) ../../gcc/diagnostic-global-context.cc:307 0x5526c0 grokfndecl ../../gcc/cp/decl.cc:10739 0x561dc9 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ../../gcc/cp/decl.cc:14789 0x586ab5 grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*, bool, tree_node*, tree_node*) ../../gcc/cp/decl2.cc:1054 0x6f04cf cp_parser_member_declaration ../../gcc/cp/parser.cc:28714 0x6ef0f5 cp_parser_member_specification_opt ../../gcc/cp/parser.cc:28078 0x6ec98c cp_parser_class_specifier ../../gcc/cp/parser.cc:27067 0x6dd9e1 cp_parser_type_specifier ../../gcc/cp/parser.cc:20234 0x6d7a13 cp_parser_decl_specifier_seq ../../gcc/cp/parser.cc:16760 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.