[Bug c++/99331] [8/9/10 Regression] -Wconversion false-positive in immediate context
nok.raven at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Mar 26 12:58:32 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99331
--- Comment #7 from Nikita Kniazev <nok.raven at gmail dot com> ---
The fix silenced the true warning (though it was saying 'may') in these:
template <char N> struct X {};
template <class T> X<sizeof(T)> foo();
int x = sizeof(foo<char[512]>());
template <char N> struct X {};
template <typename T>
struct foo { using t = X<sizeof(T)>; };
foo<char[512]> x;
Should I post this as a separate issue?
More information about the Gcc-bugs
mailing list