I\'m simply trying to overload a + operator and I\'m getting this compiler warning
reference to local variable \'tmp\' returned
Here is the
tmp has a storage class of auto and will disappear when we exit. The answer is to specify static.
tmp
auto
static Int tmp = value + p.value;
The storage assigned to tmp will remain reserved for the duration of the program.