This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: ARM-CGT-19_20.2.6.LTS

Part Number: TMS570LC4357


 can_rx_messages.insert(make_pair(can_id, this));

"src/can_service.cpp", line 130: remark #342-D: value copied to temporary,
          reference to temporary used
          can_rx_messages.insert(make_pair(can_id, this));

The above code works without issue on gcc and arm compilers. On thIs compiler the code generates a message shown above and crashes the program. can_rx_messages is a std::map with a uint32_t key and a custom Derived object pointer as the value.