[LLVMbugs] [Bug 6483] New: Assertion failure (Expected a direct reference binding!) with boost

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 3 09:51:10 PST 2010


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

           Summary: Assertion failure (Expected a direct reference
                    binding!) with boost
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P5
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: whitehorn at wisc.edu
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=4381)
 --> (http://llvm.org/bugs/attachment.cgi?id=4381)
Test case

When building headers similar to the attached reduced test case, I get an
assertion failure inside clang:

[nwhitehorn at comporellon /usr/home/nwhitehorn]$ clang++ test.cpp 
Assertion failed: (ICS->UserDefined.After.ReferenceBinding &&
ICS->UserDefined.After.DirectBinding && "Expected a direct reference
binding!"), function CheckReferenceInit, file
/home/nwhitehorn/llvm/llvm-src/tools/clang/lib/Sema/SemaDeclCXX.cpp, line 4550.
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd9.0 -S -disable-free -main-file-name test.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 78 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-4u7iDn.s -x c++ test.cpp 
1.      <eof> parser at end of file
2.      test.cpp:35:7: instantiating function definition
'boost::archive::portable_binary_oarchive_impl<class
boost::archive::portable_binary_oarchive, char, struct std::char_traits<char>
>::portable_binary_oarchive_impl'
3.      /usr/local/include/boost/archive/basic_binary_oarchive.hpp:124:5:
instantiating function definition 'boost::archive::basic_binary_oarchive<class
boost::archive::portable_binary_oarchive>::basic_binary_oarchive'
4.      /usr/local/include/boost/archive/detail/common_oarchive.hpp:66:5:
instantiating function definition
'boost::archive::detail::common_oarchive<class
boost::archive::portable_binary_oarchive>::common_oarchive'
5.      /usr/local/include/boost/archive/detail/common_oarchive.hpp:34:18:
instantiating function definition
'boost::archive::detail::common_oarchive<class
boost::archive::portable_binary_oarchive>::vsave'
6.      /usr/local/include/boost/archive/detail/interface_oarchive.hpp:63:15:
instantiating function definition
'boost::archive::detail::interface_oarchive<class
boost::archive::portable_binary_oarchive>::operator<<'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

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