[EXT_EP-9204] C++ enum class with explicit type has some problems Created: 16/Jan/19  Updated: 19/Feb/20  Resolved: 16/Jan/19

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-5791
Forum URL: https://e2e.ti.com/support/tools/ccs/f/81/t/763225
Found In Release: ARM_18.1.0.LTS
MSP430_18.1.0.LTS
C2000_19.6.0.STS
C2000_18.1.0.LTS
C6000_8.3.0
ARM_18.12.0.LTS
PRU_2.4.0*
ARM_19.6.0.STS
PRU_2.3.0
C2000_18.12.0.LTS
Fix In Release: C2000_19.6.0.STS
ARM_18.1.6.LTS
MSP430_18.1.6.LTS
C2000_18.1.6.LTS
PRU_2.3.2
C2000_18.12.2.LTS
PRU_2.4.0*
ARM_19.6.0.STS
ARM_18.12.2.LTS
C6000_8.3.4
Workaround: Avoid specifying an explicit base type for an enum.
Release Notes: Values of a C++ enum class type with an explicit base type may not be cast properly to and from integral types. The exact conditions depend on undefined behavior, and thus are not 100% predictable; the known cases happen only on Windows, though the compiler uses the same codebase on all platforms.

 Description   

C++ enum class with explicit type has some problems


Generated at Sat Dec 13 11:32:13 CST 2025 using Jira 10.3.7#10030007-sha1:a563685562f94d165eb4e158cfb2a142338d8c54.