[Bug middle-end/59812] Missing aggressive loop optimization warning
development@faf-ltd.com
gcc-bugzilla@gcc.gnu.org
Wed Sep 16 07:56:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59812
Peter VARGA <development@faf-ltd.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |development@faf-ltd.com
--- Comment #4 from Peter VARGA <development@faf-ltd.com> ---
Good, but why does not produce this test case any warning:
#include <iostream>
#include <complex>
using namespace std;
int main() {
complex<int> delta;
complex<int> mc[4] = {0};
for(int di = 0; di < 4; di++, delta = mc[di]) {
cout << "di:" << di << " delta:" << delta << endl;
}
return 0;
}
it is an endless loop. According this threads
http://stackoverflow.com/questions/32506643/c-compilation-bug ,
http://blog.regehr.org/archives/918 I understand it was fixed.
More information about the Gcc-bugs
mailing list