Re: [cfe-users] False positive -Wcomma with static_cast of dependent expression

2018-10-19 Thread Jonas Toth via cfe-users
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() > { >

[cfe-users] False positive -Wcomma with static_cast of dependent expression

2018-10-18 Thread 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() { (void)42, 0;// ok static_cast(42), 0; // ok (void)T{}, 0; // ok static_cast(T{