https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59812

Peter VARGA <developm...@faf-ltd.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |developm...@faf-ltd.com

--- Comment #4 from Peter VARGA <developm...@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.

Reply via email to