[LLVMbugs] [Bug 22998] New: delayed typo correction crash around C++14 generic lambdas in -std=c++03

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 23 09:56:47 PDT 2015


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

            Bug ID: 22998
           Summary: delayed typo correction crash around C++14 generic
                    lambdas in -std=c++03
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rnk at google.com
                CC: llvmbugs at cs.uiuc.edu, rikka at google.com
    Classification: Unclassified

$ cat t.cpp
template <typename F> decltype(auto) deduce(F f) {
  return &decltype(f)::operator();
}

template <typename C, typename R, typename A>
decltype(auto) signaturehelper(R (C::*f)(A) const) {
  return R();
}

int main() {
  auto l = [](int x) { return x * 2; };
  decltype(signaturehelper(deduce(l))) p;
}

$ clang -cc1 t.cpp
... cascading errors due to lack of -std=c++14
Assertion failed: DelayedTypos.empty() && "Uncorrected typos!", file
..\tools\clang\lib\Sema\Sema.cpp, line 273

-- 
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/20150323/23c1adad/attachment.html>


More information about the llvm-bugs mailing list