https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69784
Bug ID: 69784 Summary: Range-based for loop can Product: gcc Version: 5.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: oszi at inf dot u-szeged.hu Target Milestone: --- #include <iostream> #include <array> using namespace std; int main() { array<int, 5> i = {1,2,3,4,5}; for (auto& i : i) { cout << i <<endl; } return 0; }