[EXT_EP-9743] Compiler incorrectly issues remark: value copied to temporary, reference to temporary used Created: 11/Mar/20 Updated: 03/Jun/22 |
|
Status: | Accepted |
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-7337 |
Forum URL: | https://e2e.ti.com/support/tools/ccs/f/81/t/887747
https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/908/t/1106685 |
Found In Release: | ARM_20.2.6.LTS C6000_8.3.6 |
Affected Platform/Device: | default |
Release Notes: | No plans to address at this time. |
Description |
The attached test case contains this line ... auto retPair = std::make_pair(-1, false); Build it with remarks enabled ... % cl6x --issue_remarks --verbose_diagnostics --display_error_number try1.cpp "try1.cpp", line 5: remark #342-D: value copied to temporary, reference to temporary used auto retPair = std::make_pair(-1, false); ^ "try1.cpp", line 5: remark #342-D: value copied to temporary, reference to temporary used auto retPair = std::make_pair(-1, false); ^ These remarks should not be issued. |