[Bug c++/58747] new_for

rian.gabriel at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Oct 16 13:20:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58747

--- Comment #2 from Rian Pinheiro <rian.gabriel at gmail dot com> ---
#include <iostream>
#include <vector>

using namespace std;

int main()
{
    int i=0;
    vector<int> v(10,1);
    for(int i : v)
        cout << i << " ";

    for(int i=0; i<5;i++)
    for(int i=0; i<5;i++)
        cout << i << " ";


    return 0;
}



More information about the Gcc-bugs mailing list