Tool/software: TI C/C++ Compiler
Hello
There is simple code here that compiler raises error
struct STRUCT { char str[8]; }; STRUCT Get(); void test() { char* str = Get().str; } STRUCT Get(){ STRUCT result; return result; }
compile is ti-cgt-c6000_8.2.3 and statement:
cl6x test.cpp
commenting line 10 solves problem and compiles it, also g++ compiles the file
the error is
>> test.cpp, line 10: INTERNAL ERROR: Decomposition error This may be a serious problem. Please contact customer support with a description of this problem and a sample of the source files that caused this INTERNAL ERROR message to appear. Cannot continue compilation - ABORTING! >> Compilation failure