https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to n.deshm...@samsung.com from comment #5) > The code is part of a third party library hence adding a explicit cast is > not possible. Well that third party library is NOT valid C++ code ... The whole point of the warning (and the reason why -Wno-pedantic does not turn off the warning) is point that out and more over point out the code should be fixed. Even more things like: ``` template<typename T> void f(T a) requires requires(T a) { a = 5.0;} { } void g() { f<_Float16> (5.0); } ``` Will not work. Clang currently incorrectly accepts the above code even.