This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: INTERNAL ERROR: Decomposition error, when compiling simple function that returns a struct (compiler ti-cgt-c6000_8.2.3)

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