[LLVMbugs] [Bug 21875] New: Assertion `(Encoding == dwarf::DW_ATE_unsigned || ... ' with nullptr

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 10 17:19:58 PST 2014


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

            Bug ID: 21875
           Summary: Assertion `(Encoding == dwarf::DW_ATE_unsigned || ...
                    ' with nullptr
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: Wolfgang_Pieb at playstation.sony.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

// The following source gets an assertion at 
// lib/CodeGen/AsmPrinter/DwarfUnit.cpp:783 with 
// clang  -cc1 -g -triple x86_64-unknown-linux-gnu -emit-obj -std=c++11:

template<class T, T t> void f() {}
typedef decltype(nullptr) nullptr_t;
template <> void f<nullptr_t, nullptr>() {}

/*
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp:783: bool
isUnsignedDIType(llvm::DwarfDebug*, llvm::DIType): Assertion `(Encoding ==
dwarf::DW_ATE_unsigned || Encoding == dwarf::DW_ATE_unsigned_char || Encoding
== dwarf::DW_ATE_signed || Encoding == dwarf::DW_ATE_signed_char || Encoding ==
dwarf::DW_ATE_UTF || Encoding == dwarf::DW_ATE_boolean) && "Unsupported
encoding"' failed.
*/

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141211/fad2a20b/attachment.html>


More information about the llvm-bugs mailing list