[EXT_EP-11455] constexpr template variable should be considered a constant expression Created: 13/Sep/23  Updated: 02/Apr/24  Resolved: 08/Jan/24

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-11514
Forum URL: https://e2e.ti.com/support/sensors-group/sensors/f/1023/t/1270037
Found In Release: 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
Fix In Release: 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*
Affected Platform/Device: default

 Description   

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>; }

;


Generated at Mon Apr 14 10:37:43 CDT 2025 using Jira 9.12.17#9120017-sha1:aba4002bcd633f188b6a4bb5dd8a0e1f20b79ee4.