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

Missing error on code with invalid preprocessing token (ICC 13.1.0)

$
0
0

I've tried to compile the following invalid code with ICC 13.1.0, and I get no errors:

int main(void)
{
  int i = 0x00E-0x00A;
  return 0;
}

This code is invalid because 0x00E-0x00A is a preprocessing token due to the "E-". See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3885 (GCC correctly outputs an error).


Viewing all articles
Browse latest Browse all 1616

Trending Articles



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