[Bug libstdc++/54320] [c++11] range access to VLA
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54320 vincenzo Innocente changed: What|Removed |Added Severity|normal |enhancement --- Comment #5 from vincenzo Innocente 2012-08-19 11:34:06 UTC --- a good candidate for c++17 then!
[Bug libstdc++/54320] [c++11] range access to VLA
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54320 --- Comment #4 from Paolo Carlini 2012-08-19 11:29:15 UTC --- Would be an extension requiring front-end support. I don't think we want it.
[Bug libstdc++/54320] [c++11] range access to VLA
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54320 --- Comment #3 from vincenzo Innocente 2012-08-19 07:24:52 UTC --- int foo2(int N) { int v[N]; for ( auto a : v) if (a) return a; return 0; } works, though was similar to std::begin(v) std::end(v)
[Bug libstdc++/54320] [c++11] range access to VLA
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54320 --- Comment #2 from Andrew Pinski 2012-08-19 07:18:25 UTC --- See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5435
[Bug libstdc++/54320] [c++11] range access to VLA
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54320 --- Comment #1 from Andrew Pinski 2012-08-19 07:17:04 UTC --- I don't think they can ever be as std::begin is defined as a template with one of the template arguments being the size of the array.