Please open a bug report instead.
Best Jonas
Am 19.10.2018 um 00:39 schrieb Mat Sutcliffe via cfe-users:
> Hello list,
>
> The following code generates one false positive of the -Wcomma
> warning: (tested with clang trunk via Matt Godbolt's Compiler
> Explorer)
>
> template
> void foo()
> {
>
Hello list,
The following code generates one false positive of the -Wcomma
warning: (tested with clang trunk via Matt Godbolt's Compiler
Explorer)
template
void foo()
{
(void)42, 0;// ok
static_cast(42), 0; // ok
(void)T{}, 0; // ok
static_cast(T{