public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libstdc++/80371] std::is_integral and std::is_floating_point fail with vector types [not found] <bug-80371-4@http.gcc.gnu.org/bugzilla/> @ 2021-08-27 8:34 ` pinskia at gcc dot gnu.org 2021-08-27 16:44 ` redi at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-08-27 8:34 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80371 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- GCC, ICC and clang all cause the assert to happen. ^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libstdc++/80371] std::is_integral and std::is_floating_point fail with vector types [not found] <bug-80371-4@http.gcc.gnu.org/bugzilla/> 2021-08-27 8:34 ` [Bug libstdc++/80371] std::is_integral and std::is_floating_point fail with vector types pinskia at gcc dot gnu.org @ 2021-08-27 16:44 ` redi at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: redi at gcc dot gnu.org @ 2021-08-27 16:44 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80371 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to jwjagersma from comment #0) > Testing with std::is_integral<T> or std::is_floating_point<T> fails for > vector types. I don't think that's supposed to happen. Says who? The docs on the attribute don't say anything about whether they are new scalar types, but the name "vector" pretty strongly hints they're not scalar types! The <type_traits> traits check for the arithmetic types defined in the standard, and don't consider vectors of those types to be the same as those underlying types. I think that's the right behaviour. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-27 16:44 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-80371-4@http.gcc.gnu.org/bugzilla/> 2021-08-27 8:34 ` [Bug libstdc++/80371] std::is_integral and std::is_floating_point fail with vector types pinskia at gcc dot gnu.org 2021-08-27 16:44 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).