This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50431] lambda bug for array size def


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

--- Comment #2 from zhudiqi at 163 dot com 2011-09-16 11:40:42 UTC ---
BUG1:
  auto sz = []()->constexpr long { return 100L; };
  int arr[sz()];

Why constexpr for lambda won't be compiled? Can i not use auto type for a
lambda variant?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]