[LLVMbugs] [Bug 21925] New: Assertion "Failed to get the state for a TypoExpr!"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 15 19:08:00 PST 2014


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

            Bug ID: 21925
           Summary: Assertion "Failed to get the state for a TypoExpr!"
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
                    rikka at google.com
    Classification: Unclassified

Testcase:

struct X {
  int get() { return 7; }
};
void test() {
  X variable;
  int x = variableX.getX();  // two typos
}

$ llvm/Debug+Asserts/bin/clang b18749096.cc
b18749096.cc:6:11: error: use of undeclared identifier 'variableX'; did you
mean 'variable'?
  int x = variableX.getX();
          ^~~~~~~~~
          variable
b18749096.cc:5:5: note: 'variable' declared here
  X variable;
    ^
clang: SemaLookup.cpp:4586: const Sema::TypoExprState
&clang::Sema::getTypoExprState(clang::TypoExpr *) const: Assertion `Entry !=
DelayedTypos.end() && "Failed to get the state for a TypoExpr!"' 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/20141216/8a8b07d4/attachment.html>


More information about the llvm-bugs mailing list