[LLVMbugs] [Bug 12791] New: Error recovery can trigger Assertion `ResultKind != Found || Decls.size() == 1'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 10 12:47:43 PDT 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: hfinkel at anl.gov
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list