[LLVMbugs] [Bug 20611] crash with lambda (auto) return type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jun 13 06:59:09 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=20611

Nikola Smiljanić <popizdeh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |popizdeh at gmail.com
         Resolution|---                         |FIXED

--- Comment #3 from Nikola Smiljanić <popizdeh at gmail.com> ---
Doesn't crash with 3.6, emits:

test.cpp:6:33: error: expected a type
auto l = [](auto& container) -> (auto) {
                                ^
test.cpp:6:34: error: 'auto' not allowed in function prototype
auto l = [](auto& container) -> (auto) {

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150613/45900e77/attachment.html>


More information about the llvm-bugs mailing list