You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code is ill-formed, but we don't diagnose it:
#include<type_traits>template <>
structstd::common_type<int, int> { using type = long; }; // should warnstructFoo { };
template <>
structstd::common_type<Foo> { using type = int; }; // should warntemplate <>
structis_integral<Foo> { }; // should warn// etc...
It would be nice if Clang caught invalid specializations of std::common_type, and in fact perhaps of the other type trait classes as well.
The text was updated successfully, but these errors were encountered:
ldionne
added
clang
Clang issues not falling into any other category
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
labels
Aug 1, 2024
The following code is ill-formed, but we don't diagnose it:
It would be nice if Clang caught invalid specializations of
std::common_type
, and in fact perhaps of the other type trait classes as well.Extracted from #99473 (comment).
The text was updated successfully, but these errors were encountered: