http://llvm.org/bugs/show_bug.cgi?id=19767
Bug ID: 19767
Summary: Assertion
Product: clang
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 12520
--> http://llvm.org/bugs/attachment.cgi?id=12520&action=edit
Log of clang run
The following code crashes clang r209002 when being compiled with -g:
template <bool>
struct enable_if { using type = void; };
template <typename L, typename enable_if<true>::type* = nullptr>
static void testVoidIf(L&&) { }
int main()
{
testVoidIf([]() {});
}
This results in (full log attached):
% ~/LLVM/build/Release+Asserts/bin/clang -std=c++11 -g clang.cpp
Assertion failed: (DTy.getTag() == dwarf::DW_TAG_enumeration_type), function
isUnsignedDIType, file
/Users/rynnsauer/LLVM/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp, line 756.
0 clang 0x000000010f41ee28
llvm::sys::PrintStackTrace(__sFILE*) + 40
1 clang 0x000000010f41f324 SignalHandler(int) + 548
2 libsystem_platform.dylib 0x00007fff968f25aa _sigtramp + 26
3 libsystem_platform.dylib 000000000000000000 _sigtramp + 1769003632
4 clang 0x000000010f41f0e6 abort + 22
5 clang 0x000000010f41f0c1 __assert_rtn + 81
6 clang 0x000000010ede1208
isUnsignedDIType(llvm::DwarfDebug*, llvm::DIType) + 280
7 clang 0x000000010ede1144
isUnsignedDIType(llvm::DwarfDebug*, llvm::DIType) + 84
The code compiles successfully with r207835.
--
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