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++/54947] [4.7/4.8 Regression] [C++11] lambda cannot capture-by-copy inside braced-init-list


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-07 12:15:04 UTC ---
(In reply to comment #1)
> Guess perhaps the designated array initializers need to be parsed tentatively
> for C++11, and if they aren't valid, we'd retry as lambdas.

Shouldn't we try as lambdas, and if not valid retry as non-standard designated
initializers?  If it's ambiguous we should assume it's a standard C+ not the
extension.


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