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.

Reply via email to