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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to