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

mike at mikeweller dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike at mikeweller dot com

--- Comment #2 from mike at mikeweller dot com ---
Also running into this. In my case I came up with this test case:

```

template <typename... ARGS>
void sink(ARGS&&...)
{
}

template <typename... ARGS>
void test(int *out, ARGS&&... args)
{
    [[maybe_unused]] bool dummy[] = {
        false,
        (sink(out, args), false)...
    };
}

void foo()
{
    int i;
    test(&i); //  error: parameter 'out' set but not used
[-Werror=unused-but-set-parameter]
    test(&i, 123);
}

```

Reply via email to