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

constexpr template variable should be considered a constant expression

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-11514
    • Hide
      ARM_20.2.7.LTS
      C6000_8.3.0
      MSP430_20.2.0.LTS
      C7000_2.1.0.LTS
      MSP430_21.6.0.LTS
      C7000_3.1.0.LTS
      C7000_4.0.0.STS
      Show
      ARM_20.2.7.LTS C6000_8.3.0 MSP430_20.2.0.LTS C7000_2.1.0.LTS MSP430_21.6.0.LTS C7000_3.1.0.LTS C7000_4.0.0.STS
    • Hide
      MSP430_20.2.8.LTS*
      C7000_2.1.3.LTS*
      MSP430_21.6.2.LTS*
      C6000_8.3.13
      ARM_20.2.8.LTS*
      C7000_3.1.2.LTS*
      Show
      MSP430_20.2.8.LTS* C7000_2.1.3.LTS* MSP430_21.6.2.LTS* C6000_8.3.13 ARM_20.2.8.LTS* C7000_3.1.2.LTS*
    • default

      The compiler failed to accept this valid C++11 code:
      template<typename T> constexpr bool x = T();
      template<typename T> struct Y

      { static constexpr bool v = !x<T>; }

      ;

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

              Created:
              Updated:
              Resolved: