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

Local struct with non-constant initializer treated as static scope variable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-848
    • SDSCM00050131
    • Hide
      ARM_15.12.0.LTS
      C2000_16.9.0.LTS
      C6000_8.2.0
      C2000_18.1.0.LTS
      C2000_6.4.0B1
      C6000_8.3.0
      ARM_18.12.0.LTS
      MSP430_15.12.0.LTS
      PRU_2.3.0
      PRU_2.2.0
      PRU_2.1.0
      C6000_7.4.7
      ARM_18.1.0.LTS
      MSP430_18.1.0.LTS
      ARM_16.9.0.LTS
      C2000_15.12.0.LTS
      MSP430_4.4.0B1
      C6000_8.1.0B1
      MSP430_18.12.0.LTS
      ARM_5.2.0B1
      MSP430_16.9.0.LTS
      C2000_18.12.0.LTS
      ARP32_1.0.0B1
      Show
      ARM_15.12.0.LTS C2000_16.9.0.LTS C6000_8.2.0 C2000_18.1.0.LTS C2000_6.4.0B1 C6000_8.3.0 ARM_18.12.0.LTS MSP430_15.12.0.LTS PRU_2.3.0 PRU_2.2.0 PRU_2.1.0 C6000_7.4.7 ARM_18.1.0.LTS MSP430_18.1.0.LTS ARM_16.9.0.LTS C2000_15.12.0.LTS MSP430_4.4.0B1 C6000_8.1.0B1 MSP430_18.12.0.LTS ARM_5.2.0B1 MSP430_16.9.0.LTS C2000_18.12.0.LTS ARP32_1.0.0B1
    • Hide
      C2000_18.1.5.LTS
      C6000_8.3.2
      PRU_2.3.2
      C2000_18.12.1.LTS
      MSP430_18.1.5.LTS
      ARM_18.1.5.LTS
      MSP430_18.12.1.LTS
      ARM_18.12.1.LTS
      ARM_16.9.11.LTS
      C6000_8.2.6
      C6000_8.1.9
      C2000_16.9.11.LTS
      MSP430_16.9.11.LTS
      Show
      C2000_18.1.5.LTS C6000_8.3.2 PRU_2.3.2 C2000_18.12.1.LTS MSP430_18.1.5.LTS ARM_18.1.5.LTS MSP430_18.12.1.LTS ARM_18.12.1.LTS ARM_16.9.11.LTS C6000_8.2.6 C6000_8.1.9 C2000_16.9.11.LTS MSP430_16.9.11.LTS
    • Completely specify every aggregate member in the initializer, or do not provide an initializer at all and instead populate each field with a statement.
    • Hide
      Function local non-static aggregate (array or struct) variables which are initialized to zero, or with an initializer that incompletely specifies all of the aggregate members, will be converted to static scope (global) objects. This is wrong; each time the function is entered, there should be a fresh copy of the variable.
      Show
      Function local non-static aggregate (array or struct) variables which are initialized to zero, or with an initializer that incompletely specifies all of the aggregate members, will be converted to static scope (global) objects. This is wrong; each time the function is entered, there should be a fresh copy of the variable.

      Local struct with non-constant initializer treated as static scope variable

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

              Created:
              Updated:
              Resolved: