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

internal error: 0_1752 @ ICL 11.1.051 with /RTCu

nvruru
Beginner
327 Views
Hello,

I have found a bug in compiler when compiling this curiusly-looked sample with /RTCu:

[cpp]int foo(int a)
{
  int s;

  if(a != 0)
  {
    __asm mov s,0
    __asm jmp quit
  }

  quit:
  return s;
}
[/cpp]

Of course, real code is much complex - it's just a kernel.

Adding "__asm" before the label or putting "goto" instead of "__asm jmp", or removing /RTCu solves the problem.
The version 11.0.066 has no such error.

Best Regards,
Nick/
0 Kudos
1 Reply
Yang_W_Intel
Employee
327 Views
Quoting - nvruru
Hello,

I have found a bug in compiler when compiling this curiusly-looked sample with /RTCu:

[cpp]int foo(int a)
{
  int s;

  if(a != 0)
  {
    __asm mov s,0
    __asm jmp quit
  }

  quit:
  return s;
}
[/cpp]

Of course, real code is much complex - it's just a kernel.

Adding "__asm" before the label or putting "goto" instead of "__asm jmp", or removing /RTCu solves the problem.
The version 11.0.066 has no such error.

Best Regards,
Nick/

Thanks for reporting this issue. I will report it to engineering team for fix.
-Yang
0 Kudos
Reply