The following Code crashes the compiler (for full code see attached files):
A get_a( uint16_t num ) { return A(num); }
But it works written in two lines:
A a_from_b = b.get_a(3);
A* a = new A( a_from_b );
Compiler Arguments:
/ti-tools/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000 -v28 -ml -mt --include_path="/ti-tools/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --preproc_with_compile main.cpp
Error Message:
INTERNAL ERROR: /home/dirk/light/ti-tools/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/ac2000 experienced a segmentation fault
while processing function main file main.cpp line 38
This is caused by a defect in the compiler itself. TI Customer
Support may be able to suggest a workaround to avoid this.
Upgrading to the newest version of the compiler may fix this problem.
Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler". See the link titled
"Submitting an issue". Include this ENTIRE error message and a
copy of the .pp file created when option --preproc_with_comment
(-ppc) is used.