[LLVMbugs] [Bug 6700] New: clang: Sema.h:3539: void clang::Sema::LocalInstantiationScope::InstantiatedLocal(const clang::Decl*, clang::Decl*): Assertion `(!Stored || Stored == Inst) && "Already instantiated this local"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 24 20:32:38 PDT 2010


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

           Summary: clang: Sema.h:3539: void
                    clang::Sema::LocalInstantiationScope::InstantiatedLoca
                    l(const clang::Decl*, clang::Decl*): Assertion
                    `(!Stored || Stored == Inst) && "Already instantiated
                    this local"' failed.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: b.jacques at planet.nl
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


The following program causes an assertion when compiled with Clang:
--

#include <boost/algorithm/string/replace.hpp>
#include <string>

int main()
{
    std::string foo = "aaaa";
    boost::algorithm::replace_all(foo, "a", "b");
}

--

Stack dump:
0.    Program arguments: /usr/local/llvm/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name replace.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir /home/bastiaan/llvm/lib/clang/1.5 -fmessage-length 133
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-R8Q4MV.s -x c++ replace.cc 
1.    <eof> parser at end of file
2.    /usr/include/boost/algorithm/string/replace.hpp:649:21: instantiating
function definition 'boost::algorithm::replace_all'
3.    /usr/include/boost/algorithm/string/find_format.hpp:251:21: instantiating
function definition 'boost::algorithm::find_format_all'

-- 
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