[LLVMbugs] [Bug 19767] New: Assertion
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat May 17 00:48:01 PDT 2014
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: unassignedclangbugs at nondot.org
Reporter: jonathan.sauer at gmx.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140517/6c82aa33/attachment.html>
More information about the llvm-bugs
mailing list