public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/54320] New: [c++11] range access to VLA
@ 2012-08-19  7:12 vincenzo.innocente at cern dot ch
  2012-08-19  7:17 ` [Bug libstdc++/54320] " pinskia at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2012-08-19  7:12 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54320
           Summary: [c++11] range access to VLA
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vincenzo.innocente@cern.ch


is range access to VLA supported?

I get compilation error for

 c++ -O3 -std=gnu++11 -c vla.cpp -DVLA

with

#include<algorithm>
#ifdef VLA
int foo(int N) {
  int v[N];
  auto a = std::begin(v);
  return *a;
}
#endif

int bar() {
  int v[10];
  auto a = std::begin(v);
  return *a;
}


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-05-10 19:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-19  7:12 [Bug libstdc++/54320] New: [c++11] range access to VLA vincenzo.innocente at cern dot ch
2012-08-19  7:17 ` [Bug libstdc++/54320] " pinskia at gcc dot gnu.org
2012-08-19  7:18 ` pinskia at gcc dot gnu.org
2012-08-19  7:25 ` vincenzo.innocente at cern dot ch
2012-08-19 11:29 ` paolo.carlini at oracle dot com
2012-08-19 11:34 ` vincenzo.innocente at cern dot ch
2012-08-19 11:47 ` [Bug c++/54320] " paolo.carlini at oracle dot com
2012-08-19 12:06 ` paolo.carlini at oracle dot com
2013-04-17 14:11 ` paolo.carlini at oracle dot com
2013-04-17 14:16 ` paolo.carlini at oracle dot com
2013-05-10 14:58 ` paolo.carlini at oracle dot com
2013-05-10 19:38 ` jason at gcc dot gnu.org
2013-05-10 19:40 ` jason at gcc dot gnu.org
2013-05-10 19:48 ` daniel.kruegler at googlemail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).