Unfortunately the following doesn't reproduce the issue.
#include <vector> #include <algorithm>
void g();
void f(int nBands, double maxZErr) { for (int iBand = 0; iBand < nBands; iBand++) { g(); std::vector<signed char> noDataCandVec; std::vector<signed char> distCandVec = {0, 1, 10, 100, 5, 6}; for (signed char dist : distCandVec) noDataCandVec.push_back(1); std::sort(noDataCandVec.begin(), noDataCandVec.end(), std::greater<double>()); } }
I'll add the preprocessed source.
Unfortunately the following doesn't reproduce the issue.
#include <vector>
#include <algorithm>
void g();
void f(int nBands, double maxZErr) { :vector< signed char> noDataCandVec; :vector< signed char> distCandVec = {0, 1, 10, 100, 5, 6}; dVec.push_ back(1) ; :sort(noDataCan dVec.begin( ), noDataCandVec. end(),
std::greater< double> ());
for (int iBand = 0; iBand < nBands; iBand++)
{
g();
std:
std:
for (signed char dist : distCandVec)
noDataCan
std:
}
}
I'll add the preprocessed source.