Community
cancel
Showing results for 
Search instead for 
Did you mean: 
llevrel
Beginner
60 Views

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

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
60 Views


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