Designated initializer plus struct hack hangs compiler

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Code Generation Tools
    • CODEGEN-1703
    • Hide
      MSP430_16.6.0.STS
       C2000_16.6.0.STS
      Show
      MSP430_16.6.0.STS  C2000_16.6.0.STS
    • Hide
      C2000_6.4.12
       C2000_15.12.4.LTS
       ARM_15.12.4.LTS
      Show
      C2000_6.4.12  C2000_15.12.4.LTS  ARM_15.12.4.LTS
    • Hide
      Avoiding using string constants to initialize objects with flexible array members. Instead, use a brace-initialized array. For example:

      struct { int a; char b[]; } mystruct = {0, {'h', 'e', 'l', 'l', 'o'} };
      Show
      Avoiding using string constants to initialize objects with flexible array members. Instead, use a brace-initialized array. For example: struct { int a; char b[]; } mystruct = {0, {'h', 'e', 'l', 'l', 'o'} };
    • Hide
      Fixed a compiler hang caused by initializing flexible array members with string constants.

      struct {int a; char b[]; } mystruct = {0, "hello"} /* Would cause the compiler to hang and/or crash */
      Show
      Fixed a compiler hang caused by initializing flexible array members with string constants. struct {int a; char b[]; } mystruct = {0, "hello"} /* Would cause the compiler to hang and/or crash */

      Designated initializer plus struct hack hangs compiler

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-704 - Designated initializer plus struct ...
                SYNCHRONIZED
                • Last Sync Date: