https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122632

--- Comment #3 from Tymi <tymi at tymi dot org> ---
<source>: In function 'void g(auto:2 ...)':
<source>:4:16: warning: parameter declaration before lambda exception
specification only optional with '-std=c++23' or '-std=gnu++23'
[-Wc++23-extensions]
    4 |     [...x = x] noexcept(noexcept(f(x...))) {};
      |                ^~~~~~~~
<source>: In instantiation of 'void g(auto:2 ...) [with auto:2 = {int}]':
required from here
<source>:8:6:   
    8 |     g(0);
      |     ~^~~
<source>:4:35: internal compiler error: Segmentation fault
    4 |     [...x = x] noexcept(noexcept(f(x...))) {};
      |                                  ~^~~~~~
0x2906548 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
        ???:0
0x28fb33b internal_error(char const*, ...)
        ???:0
0xd84d03 tsubst_pack_expansion(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xd7d15a tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xd6f034 tsubst_lambda_expr(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xda708d instantiate_decl(tree_node*, bool, bool)
        ???:0
0xdb0afa instantiate_pending_templates(int)
        ???:0
0xc25578 c_parse_final_cleanups()
        ???:0
0xeb5cf8 c_common_parse_file()
        ???:0
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.
Compiler returned: 1

Reply via email to