[Bug c++/50431] [C++0x] bug in def array size with a lambda

2011-11-13 Thread zhudiqi at 163 dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50431 --- Comment #6 from zhudiqi at 163 dot com 2011-11-13 12:59:47 UTC --- (In reply to comment #5) > I guess we can close this as fixed in 4.7.0. Yes, I think so.

[Bug c++/50431] [C++0x] bug in def array size with a lambda

2011-11-05 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50431 Paolo Carlini changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug c++/50431] [C++0x] bug in def array size with a lambda

2011-09-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50431 --- Comment #4 from Jonathan Wakely 2011-09-16 13:47:49 UTC --- (In reply to comment #2) > 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

[Bug c++/50431] [C++0x] bug in def array size with a lambda

2011-09-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50431 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to work|