Vector Class Discussion

Apple Clang version check unreliable
Author: Agner Date: 2017-05-09 13:32
Cosmin Deaconu wrote:
The most recent update to the vector class added a version check for Apple-provided clang compilers, which seems to cause issues for some users using OS X. Removing the version check (and just using the preprocessor workaround for clang's aliasing bugs) fixes it. The clang version reported by their compilers is 8000042.
Yes, the Clang version reported by Apple Clang has no relationship to the version on other platforms, and they refuse to fix it. We have to rely on the "Apple build version". It would be useful if you could get the value of "Apple build version", which is in the macro named __apple_build_version__

If there are any Mac users out there who can contribute more to find out this problem then please let us know. The problem is that previous versions of Clang do not distinguish between the vector types __m128, __m128i and __m128f, but apparently Apple Clang version 6.2.something does. They don't respond to bug reports about this.

 
thread Apple Clang version check unreliable new - Cosmin Deaconu - 2017-05-09
last replythread Apple Clang version check unreliable - Agner - 2017-05-09
last replythread Apple Clang version check unreliable new - Cosmin Deaconu - 2017-05-09
last replythread Apple Clang version check unreliable new - Agner - 2017-05-10
last replythread Apple Clang version check unreliable new - Royi - 2018-04-06
last reply Apple Clang version check unreliable new - Agner - 2018-04-06