Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

icc compile error on OS X

$
0
0

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


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>