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

             Bug #: 12791
           Summary: Error recovery can trigger Assertion `ResultKind !=
                    Found || Decls.size() == 1'
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Created attachment 8527
  --> http://llvm.org/bugs/attachment.cgi?id=8527
reduced test case (provided by Craig Schroeder)

Running clang trunk on x86_64 on the attached reduced test case produces:

t2.cpp:19:33: error: unknown type name 'size_type'
    static _CharT* _S_construct(size_type __req, _CharT __c, const _Alloc&
__a);
                                ^
t2.cpp:14:34: error: use of undeclared identifier '_S_empty_rep'
    basic_string() : _M_dataplus(_S_empty_rep()._M_refdata(), _Alloc()) {}
                                 ^
clang: /src/llvm-trunk-writable/tools/clang/lib/Sema/SemaLookup.cpp:312: void
clang::LookupResult::sanityImpl() const: Assertion `ResultKind != Found ||
Decls.size() == 1' failed.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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