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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs