Tool/software: TI C/C++ Compiler
hi, I recently upgraded from 17.9 to 19.6 and got this error message:
>> ../source/motor/motor_current.cpp, line 37:
INTERNAL ERROR: >>>Register allocation failed:
Average(std::vector<float, std::allocator<float>>)
This may be a serious problem. Please contact customer support with a
description of this problem and a sample of the source files that caused this
INTERNAL ERROR message to appear.
Cannot continue compilation - ABORTING!
from this code:
float Average(std::vector<float> v)
{ float sum=0.0;
for(int i=0;i<v.size();i++)
sum+=v[i];
return sum/v.size();
}
all optimization is turned off.