- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The code:
--------------------------
#include
int main() {
#ifdef __clang_version__
printf("%s\n", __clang_version__);
#endif
}
---------------------------
__clang_version__ is a builtin macro defined by clang, and is supposed to be irrelevant to icc. But icc emits a compile error when compiling this code:
test.c(5): error: extra text after expected end of number
printf("%s\n", __clang_version__);
^
This looks like a bug.
Specs:
OS X 10.10.3
icc 15.0.2
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page