Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

icpc 12.0.0 doesn't output diagnostic 111: statement is unreachable

llevrel
Beginner
338 Views
Hi,

After finding a stupid bug in my code (for(int j=0;j>3;j++)...) and reading http://software.intel.com/en-us/articles/cdiag111/ I wondered why the compiler didn't warn me. I then tried to reproduce what's described in the cited page, but it doesn't work.

That page uses 11.0.061 on Windows. I use 12.0.0 on Linux. Is the feature unimplemented on Linux, or has it been removed from v 12?

Thanks in advance.
0 Kudos
1 Reply
Judith_W_Intel
Employee
338 Views

What compiler options did you use on Linux? I see the diagnostic when I use -Wremarks or -w2.
0 Kudos
Reply