This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50431] lambda bug for array size def
- From: "zhudiqi at 163 dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Sep 2011 11:40:42 +0000
- Subject: [Bug c++/50431] lambda bug for array size def
- Auto-submitted: auto-generated
- References: <bug-50431-4@http.gcc.gnu.org/bugzilla/>
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?