[llvm-bugs] [Bug 32831] New: Assertion failed: isGenericLambdaCallOperatorSpecialization(CurLSI->CallOperator), file llvm\tools\clang\lib\Sema\SemaExprCXX.cpp, line 934

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 27 13:20:48 PDT 2017


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

            Bug ID: 32831
           Summary: Assertion failed:
                    isGenericLambdaCallOperatorSpecialization(CurLSI->Call
                    Operator), file
                    llvm\tools\clang\lib\Sema\SemaExprCXX.cpp, line 934
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: yaron.keren at gmail.com
                CC: faisalv at yahoo.com, llvm-bugs at lists.llvm.org

$ cat database.cc
template <typename Func> void parallel_for_each(Func func) {
  [&]() { func(0); };
}
class database {
  int add_column_family_and_make_directory() {
    [this] {
      [this] {
        parallel_for_each(
            [this](auto) { add_column_family_and_make_directory(); });
      };
    };
  }
};

$ clang -v
clang version 5.0.0 (trunk 301510)

$ clang -fsyntax-only -std=c++14 -w database.cc
Assertion failed:
isGenericLambdaCallOperatorSpecialization(CurLSI->CallOperator), file
llvm\tools\clang\lib\Sema\SemaExprCXX.cpp, line 934


(this was reduced from scylladb)

-- 
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/20170427/86c270ae/attachment.html>


More information about the llvm-bugs mailing list