[LLVMbugs] [Bug 7575] New: Assertion " " from boost::array

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 6 08:40:37 PDT 2010


           Summary: Assertion " " from boost::array
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=5170)
 --> (http://llvm.org/bugs/attachment.cgi?id=5170)
asserting array example

The attached code causes the following assertion:

While deleting: { { i8 } }* %
Use still stuck around after Def is destroyed:  %arrayidx6 = getelementptr
inbounds %"struct.std::basic_string"* <badref>, i64 %8 ;
<%"struct.std::basic_string"*> [#uses=1]
clang: Value.cpp:75: virtual llvm::Value::~Value(): Assertion `use_empty() &&
"Uses remain when a value is destroyed!"' failed.

The code is reduced from a testcase of boost::array. The test has been broken
(in clang) in the last few days, it works with a 2-week old version of the
compiler. I have not attempted to further reduce when it was broken.

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