[llvm-bugs] [Bug 45881] New: Assertion `CurLSI && "While computing 'this' capture-type for a generic " "lambda, we must have a corresponding LambdaScopeInfo"' failed

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 11 18:24:08 PDT 2020


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

            Bug ID: 45881
           Summary: Assertion `CurLSI && "While computing 'this'
                    capture-type for a generic " "lambda, we must have a
                    corresponding LambdaScopeInfo"' failed
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: peter at pcc.me.uk
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

$ cat test-formatted.ii
class s {
  int i;
  void a() {
    [](auto) __attribute__((requires_capability(i))){}(1);
  }
};
$ clang++ -c -o test.o test-formatted.ii -std=gnu++2a
clang++: ../clang/lib/Sema/SemaExprCXX.cpp:1113: clang::QualType
adjustCVQualifiersForCXXThisWithinLambda(ArrayRef<clang::sema::FunctionScopeInfo
*>, clang::QualType, clang::DeclContext *, clang::ASTContext &): Assertion
`CurLSI && "While computing 'this' capture-type for a generic " "lambda, we
must have a corresponding LambdaScopeInfo"' failed.

-- 
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/20200512/a0844b95/attachment.html>


More information about the llvm-bugs mailing list