[LLVMbugs] [Bug 21047] New: Generating debug info for use of __uuidof as default template parameter causes an assert

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 23 15:26:39 PDT 2014


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

            Bug ID: 21047
           Summary: Generating debug info for use of __uuidof as default
                    template parameter causes an assert
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fjahanian at apple.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13077
  --> http://llvm.org/bugs/attachment.cgi?id=13077&action=edit
A c++ file showing the bug

clang -cc1 -triple=x86_64-pc-win32 -g -emit-llvm t.cpp -fms-compatibility
Causes a crash when generating debug info.

clang-tot -cc1 -triple=x86_64-pc-win32 -g -emit-llvm t.cpp -fms-compatibility
Assertion failed: (V && "Expression in template argument isn't constant"),
function CollectTemplateParams, file
/Users/fjahanian/sandbox/llvm-tot/tools/clang/lib/CodeGen/CGDebugInfo.cpp, line
1339.
0  clang                    0x0000000103be6e1e
llvm::sys::PrintStackTrace(__sFILE*) + 46
1  clang                    0x0000000103be712b
PrintStackTraceSignalHandler(void*) + 27
2  clang                    0x0000000103be7555 SignalHandler(int) + 565
3  libsystem_platform.dylib 0x00007fff8c3a85aa _sigtramp + 26
4  clang                    0x0000000101ff7055 llvm::PointerIntPair<void*, 1u,
bool, llvm::PointerUnionUIntTraits<clang::Type const*, clang::ExtQuals const*>
>::PointerIntPair() + 21
5  clang                    0x0000000103be715b raise + 27
6  clang                    0x0000000103be7212 abort + 18
7  clang                    0x0000000103be71f1 __assert_rtn + 129
8  clang                    0x000000010074b02b
clang::CodeGen::CGDebugInfo::CollectTemplateParams(clang::TemplateParameterList
const*, llvm::ArrayRef<clang::TemplateArgument>, llvm::DIFile) + 3611
9  clang                    0x000000010074b2fb
clang::CodeGen::CGDebugInfo::CollectCXXTemplateParams(clang::ClassTemplateSpecializationDecl
const*, llvm::DIFile) + 123
10 clang                    0x0000000100751687
clang::CodeGen::CGDebugInfo::CreateLimitedType(clang::RecordType const*) + 2455
11 clang                    0x000000010074d13e
clang::CodeGen::CGDebugInfo::getOrCreateLimitedType(clang::RecordType const*,
llvm::DIFile) + 174
12 clang                    0x000000010074c62e
clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*) +
158

-- 
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/20140923/3d438650/attachment.html>


More information about the llvm-bugs mailing list