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.