- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have found a bug in compiler when compiling this curiusly-looked sample with /RTCu:
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/
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/
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - nvruru
Hello,
I have found a bug in compiler when compiling this curiusly-looked sample with /RTCu:
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/
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page