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

zhudiqi at 163 dot com gcc-bugzilla@gcc.gnu.org
Fri Sep 16 12:05:00 GMT 2011


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?



More information about the Gcc-bugs mailing list