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

            Bug ID: 124091
           Summary: parameter packs not expanded with '...'
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 89.64.xjp at protonmail dot com
  Target Milestone: ---

https://godbolt.org/z/Geh6aoreW
-----------------------------------------
-std=c++26 -O3 -Wall -fno-exceptions -Wtemplate-body -fno-stack-protector
-ftrivial-auto-var-init=uninitialized -D NDEBUG
-----------------------------------------
void test(auto...args)
{
    [args...]
    {
        (...,[args]{}());
    }();
}
-----------------------------------------
<source>: In lambda function:
<source>:5:19: error: parameter packs not expanded with '...':
[-Wtemplate-body]
    5 |         (...,[args]{}());
      |                   ^
<source>:5:19: note:         'args'
Compiler returned: 1
  • [Bug c++/124091] New: paramet... 89.64.xjp at protonmail dot com via Gcc-bugs

Reply via email to