Today I encountered a compiler crash with CGT6000. I was at version 6.1.12 when it occurred because it was working well for me up until the crash. The bug-out phrase when it crashed is: >> tls.h, line 944: INTERNAL ERROR: no match for ASG.
So I searched the defect history and found what seemed to be the exact fix that I needed as follows:
-------------------- FIXED SDSCM00034576 -------------------------------
Summary : _amem2 internal error
Fixed in : 6.1.14 Severity : S2 - Major Affected Component : C/C++ Compiler (cl)
Description: Use of _amem2 intrinsic causes a codegen crash
>> sourcefile.c, line 65 INTERNAL ERROR no match for ASG
I then upgraded to the latest version of the compiler (v6.1.22) and proceeded with a fresh build of my project. To my dismay, the new compiler crashed exactly as before. Upon closer inspection of the FIX above, I noticed it says "Use of _amem2 intrinsic...". Curses! Instead of _amem2, I'm using the _mem2 intrinsic at the crash site.
First, in lieu of a compiler update, what is the best work-around for this bug?
Second, how do I go about getting this bug squashed?