[EXT_EP-9418] switch statement where controlling expression is C++ scoped enum with underlying type smaller than int crashes compiler unle Created: 22/Jul/19 Updated: 19/Feb/20 Resolved: 22/Jul/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-6476 |
| Forum URL: | https://e2e.ti.com/support/tools/ccs/f/81/t/822236 |
| Found In Release: | C6000_8.3.0 |
| Fix In Release: | C6000_8.3.5 |
| Workaround: | Doing any of the following will work around the bug: - use any level of optimization from -O0 to -O3 - change the scoped enum to an unscoped enum - specify the size of the enum as int or unsigned int - change the switch to a tree of if/then/else statements |
| Release Notes: | Compiling a C++ test case containing a switch statement where the condition is a scoped enum (a C++11 feature) with underlying t... |
| Description |
|
switch statement where controlling expression is C++ scoped enum with underlying type smaller than int crashes compiler unle |