Community
cancel
Showing results for 
Search instead for 
Did you mean: 
nvruru
Beginner
95 Views

internal error: 0_1752 @ ICL 11.1.051 with /RTCu

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
95 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
Reply