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

trashyankes at wp dot pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trashyankes at wp dot pl

--- Comment #1 from trashyankes at wp dot pl ---
Another similar case:

```

template<typename... T>
struct F : T...
{
    F(int i) : T{i}...
    {

    }
};
int main() {
    F<> z{2}; //warning: parameter 'i' set but not used
[-Wunused-but-set-parameter]
}

```

https://gcc.godbolt.org/z/lhGLZ6

I think in case when variadic list is empty, code still "use" `i`.
Error still exist in 9.1

Reply via email to