Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

Scope issues

One_C_
Beginner
267 Views

Hi,

I work on a large project that is compiled with icc 11. Now we are migrating to icc 13 and I get numerous scope issues when compiling the same code on the new compiler. Any idea what might have been chenged regarding the precprocessor or how the compiler "understands" the C++ standrad that might cause the scope problems?

Thanks!

0 Kudos
2 Replies
TimP
Black Belt
267 Views

You probably meant to post this on the C++ forum.  Generally speaking, gcc/g++ have been getting more strict about enforcing scoping, and icc has gone along with the trend.  There definitely are cases where MIcrosoft style will be diagnosed as broken.

SergeyKostrov
Valued Contributor II
267 Views
>>...Now we are migrating to icc 13 and I get numerous scope issues when compiling the same code on the new compiler... I think you need to provide at least a couple of examples and could you submit compilation errors / warnings?
Reply