[LLVMbugs] [Bug 6310] New: clang codegen fails with clang: /home/corni/clang/llvm/ include/llvm/Support/Casting.h:200: typename llvm::cast_retty<To, From>:: ret_type llvm::cast(const Y&) [with X = clang::VarDecl, Y = const clang:: NamedDecl*]: Assertion `isa<X>(Val) && "cast<Ty>() arg

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 15 14:07:15 PST 2010


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

           Summary: clang codegen fails with clang:
                    /home/corni/clang/llvm/include/llvm/Support/Casting.h:20
                    0: typename llvm::cast_retty<To, From>::ret_type
                    llvm::cast(const Y&) [with X = clang::VarDecl, Y = const
                    clang::NamedDecl*]: Assertion `isa<X>(Val) &&
                    "cast<Ty>() arg
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: c.r1 at gmx.de
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4234)
 --> (http://llvm.org/bugs/attachment.cgi?id=4234)
backtrace of clang crashing

Hi,
the attached preprocessed source (unreduced) crashes with
clang: /home/corni/clang/llvm/include/llvm/Support/Casting.h:200: typename
llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
clang::VarDecl, Y = const clang::NamedDecl*]: Assertion `isa<X>(Val) &&
"cast<Ty>() argument of incompatible type!"' failed.
and the attached backtrace.
The stackdump is:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name pVar.cpp -pic-level 2
-mdisable-fp-elim -munwind-tables -target-cpu x86-64 -resource-dir
/usr/local/lib/clang/1.1 -Drphp_runtime_EXPORTS -DLLVM_VERSION=2007000
-I/home/corni/dev/rphp/rphp-git/include -I/usr/local/include -fmessage-length
157 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-1htv2h.s -x c++ /home/corni/dev/rphp/rphp-git/runtime/pVar.cpp 
1.      <eof> parser at end of file
2.      /usr/include/boost/multi_index_container.hpp:171:12: instantiating
function definition 'boost::multi_index::multi_index_container<struct
rphp::h_container, struct boost::multi_index::indexed_by<struct
boost::multi_index::hashed_unique<struct boost::multi_index::member<struct
rphp::h_container, class boost::variant<long, class std::basic_string<char,
struct std::char_traits<char>, class std::allocator<char> >, class
rphp::pUStringP, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_>, key>,
struct mpl_::na, struct mpl_::na, struct mpl_::na>, struct
boost::multi_index::sequenced<struct boost::multi_index::tag<struct mpl_::na,
struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct
mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na,
struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct
mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na,
struct mpl_::na> >, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct
mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na,
struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct
mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na,
struct mpl_::na>, class std::allocator<struct rphp::h_container>
>::multi_index_container'
3.      /usr/include/boost/multi_index_container.hpp:171:12: LLVM IR generation
of declaration 'boost::multi_index::multi_index_container<struct
rphp::h_container, struct boost::multi_index::indexed_by<struct
boost::multi_index::hashed_unique<struct boost::multi_index::member<struct
rphp::h_container, class boost::variant<long, class std::basic_string<char,
struct std::char_traits<char>, class std::allocator<char> >, class
rphp::pUStringP, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_, struct
boost::detail::variant::void_, struct boost::detail::variant::void_>, key>,
struct mpl_::na, struct mpl_::na, struct mpl_::na>, struct
boost::multi_index::sequenced<struct boost::multi_index::tag<struct mpl_::na,
struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct
mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na,
struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct
mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na,
struct mpl_::na> >, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct
mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na,
struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct
mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na, struct mpl_::na,
struct mpl_::na>, class std::allocator<struct rphp::h_container>
>::multi_index_container'


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