Open Quuxplusone opened 12 years ago
Bugzilla Link | PR12643 |
Status | NEW |
Importance | P normal |
Reported by | Luboš Luňák (l.lunak@centrum.cz) |
Reported on | 2012-04-24 10:05:00 -0700 |
Last modified on | 2014-10-22 14:41:17 -0700 |
Version | trunk |
Hardware | Other Linux |
CC | agner@agner.org, anton@korobeynikov.info, geek4civic@gmail.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
This is very bad!
The Apple Clang version 3.5 has __clang_major__ = 6 and __clang_minor__ = 0 so
as to make believe it is version 6.0. Apparently, there is no way to check for
version numbers across platforms. The documentation says that you should use
the __has_feature() macros (
http://clang.llvm.org/docs/LanguageExtensions.html#builtin-macros ).
But obviously, there is no __has_bug() macro. The __clang_major__ and
__clang_minor__ macros are needed in particular for making work-arounds for
known bugs. This is impossible when version macros are inconsistent! I need to
make a workaround for a known bug, and I need my code to be portable among
platforms.
This bug was reported 2½ years ago. I can't believe it hasn't been fixed yet.
Please fix this ASAP or make a new set of version macros that are reliable.
Please report the problems with Apple-released binaries to apple bug tracker.