<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Generating debug info for use of __uuidof as default template parameter causes an assert"
   href="http://llvm.org/bugs/show_bug.cgi?id=21047">21047</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Generating debug info for use of __uuidof as default template parameter causes an assert
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows 2000
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>fjahanian@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13077" name="attach_13077" title="A c++ file showing the bug">attachment 13077</a> <a href="attachment.cgi?id=13077&action=edit" title="A c++ file showing the bug">[details]</a></span>
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*>
<span class="quote">>::PointerIntPair() + 21</span >
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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>