Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-9835

Compiler terminates abnormally with incomplete complex initialization

    XMLWordPrintable

Details

    • Bug
    • Status: Fixed
    • Medium
    • Resolution: Fixed
    • Code Generation Tools
    • CODEGEN-2534
    • Hide
      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
      Show
      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
    • Hide
      C7000_3.1.0.LTS
      C7000_4.0.0.STS*
      Show
      C7000_3.1.0.LTS C7000_4.0.0.STS*
    • 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

      Attachments

        Activity

          People

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: