[EXT_EP-9835] Compiler terminates abnormally with incomplete complex initialization Created: 02/Jun/20  Updated: 18/Jan/23  Resolved: 18/Jan/23

Status: Fixed
Project: Embedded Software & Tools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: TI User Assignee: TI User
Resolution: Fixed Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Product: Code Generation Tools
Internal ID: CODEGEN-2534
Found In Release: C7000_1.4.0.LTS
C7000_2.1.2.LTS
C7000_2.0.1.STS
C7000_2.1.0.LTS
C7000_2.0.0.STS
C7000_3.0.0.STS
C7000_3.1.0.LTS
Fix In Release: C7000_3.1.0.LTS
C7000_4.0.0.STS*
Workaround: The programmer should complete the initialization for each real and imaginary lane.

 Description   

The compiler will terminate abnormally when source code contains an incomplete complex initialization as below

$ cat foo.c
#include <c7x.h>
cchar2 foo()

{ cchar2 a = (cchar2)(0); return a; }

$ cl7x foo.c
"foo.c", line 3: error: (OpenCL) Cannot auto-widen "signed char" into "cchar2"
"foo.c", line 3: internal error: assertion failed at: "../../master/ANSI/opencl.c", line 1184

1 error and 1 catastrophic error detected in the compilation of "foo.c".
Compilation aborted.

INTERNAL ERROR: acpia7x had an internal inconsistency and aborted
while processing function foo file foo.c line 3


Generated at Thu Apr 10 06:28:38 CDT 2025 using Jira 9.12.17#9120017-sha1:aba4002bcd633f188b6a4bb5dd8a0e1f20b79ee4.