[EXT_EP-8585] No error generated for lambda-expression in default argument cannot capture any entity. Created: 04/Jan/18 Updated: 28/Mar/23 |
|
Status: | New |
Project: | Embedded Software & Tools |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Low |
Reporter: | TI User | Assignee: | TI User |
Resolution: | Unresolved | Votes: | 0 |
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Product: | Code Generation Tools |
Internal ID: | CODEGEN-4234 |
Found In Release: | ARM_18.1.0.LTS MSP430_18.1.0.LTS C2000_22.6.0.LTS MSP430_20.2.0.LTS ARM_18.12.0.LTS MSP430_21.6.0.LTS C2000_21.6.0.LTS MSP430_18.12.0.LTS ARM_20.2.0.LTS |
Description |
The TI compiler does not generate an error for the following test case: void f1(int var) { } void f2(int var) { void g(int = ([&,b=2]() mutable throw() -> int { return 1; } ) () ); // line 11 |