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

MARIO RODRIGUEZ BEJAR <mario.rodriguezb1 at um dot es> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mario.rodriguezb1 at um dot es

--- Comment #4 from MARIO RODRIGUEZ BEJAR <mario.rodriguezb1 at um dot es> ---
/* internal compiler error: Check code */
int main() {
        auto func = [](auto... args) constexpr {
                return (([]<typename... Ts>(Ts arg) {
                        return arg;
                }(args)),...);
        };
        func(2, 6, 7);
}

Arise same issue:

<source>:6:25: internal compiler error: in tsubst_pack_expansion, at
cp/pt.cc:14039
    4 |                 return (([]<typename... Ts>(Ts arg) {
      |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    5 |                         return arg;
      |                         ~~~~~~~~~~~
    6 |                 }(args)),...);
      |                 ~~~~~~~~^~~~~
0x287a025 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x289bd06 internal_error(char const*, ...)
        ???:0
0xaf4a22 fancy_abort(char const*, int, char const*)
        ???:0
0xd7993d instantiate_decl(tree_node*, bool, bool)
        ???:0
0xc01e23 maybe_instantiate_decl(tree_node*)
        ???:0
0xc03b97 mark_used(tree_node*, int)
        ???:0
0xb31163 build_op_call(tree_node*, vec<tree_node*, va_gc, vl_embed>**, int)
        ???:0
0xda442e finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
        ???:0
0xd21723 c_parse_file()
        ???:0
0xe8b9d9 c_common_parse_file()
        ???:0

Reply via email to