[LLVMbugs] [Bug 17648] Assertion failed: findInstantiationOf(const clang::Decl *): Assertion `isa<LabelDecl>(D) && "declaration not instantiated in this scope"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 12 18:34:14 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=17648

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Generic lambda capturing is implemented now, and we reject this correctly:

<stdin>:1:29: error: variable 'x' cannot be implicitly captured in a lambda
with no capture-default specified
int f(int x){return[](auto){x;}(x);}
                            ^

-- 
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/20131113/62f98fa6/attachment.html>


More information about the llvm-bugs mailing list