<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Assertion failed Assertion failed: !hasUninstantiatedDefaultArg() && "Default argument is not yet instantiated!""
   href="https://bugs.llvm.org/show_bug.cgi?id=45811">45811</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed Assertion failed: !hasUninstantiatedDefaultArg() && "Default argument is not yet instantiated!"
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

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

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>zahira.ammarguellat@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Considering this test case:

template <typename>
class __declspec(dllexport) foo {
  foo(int x = 0);
};
template <>
foo<int>::foo(int);

ksh-3.2$ clang -c t1.cpp
Assertion failed: !hasUninstantiatedDefaultArg() && "Default argument is not
yet instantiated!", file
D:\IUSERS\zahiraam\llorg_ws\llorg_may\llvm\clang\lib\AST\Decl.cpp, line 2697
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: clang -c t1.cpp
1.      <eof> parser at end of file
2.      t1.cpp:42:11: LLVM IR generation of declaration 'foo<int>::foo'
 #0 0x00007ff691cd49fc
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x2ac49fc)
 #1 0x00007ffea4f5c3e1 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6c3e1)
 #2 0x00007ffea4f5e039 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6e039)
 #3 0x00007ffea4f63c65 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x73c65)
 #4 0x00007ffea4f637d7 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x737d7)
 #5 0x00007ffea4f61841 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x71841)
 #6 0x00007ffea4f641cf (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x741cf)
 #7 0x00007ff6978f23ee
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x86e23ee)
 #8 0x00007ff6927c19f8
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x35b19f8)
 #9 0x00007ff69294fe9b
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x373fe9b)
#10 0x00007ff692942f8e
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3732f8e)
#11 0x00007ff692378241
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3168241)
#12 0x00007ff698e89f0e
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x9c79f0e)
#13 0x00007ff698e8310b
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x9c7310b)
#14 0x00007ff695edd5b9
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x6ccd5b9)
#15 0x00007ff69307583b
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3e6583b)
#16 0x00007ff698e773ef
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x9c673ef)
#17 0x00007ff6930751cc
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3e651cc)
#18 0x00007ff692fdf702
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3dcf702)
#19 0x00007ff69326dc8c
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x405dc8c)
#20 0x00007ff68f5e261b
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3d261b)
#21 0x00007ff68f5ca995
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3ba995)
#22 0x00007ff692eaf7c6
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3c9f7c6)
#23 0x00007ff692eaeac8
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3c9eac8)
#24 0x00007ff691c6828e
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x2a5828e)
#25 0x00007ff691c792cf
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x2a692cf)
#26 0x00007ff692eab5aa
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3c9b5aa)
#27 0x00007ff692dde8fd
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3bce8fd)
#28 0x00007ff692ddeb39
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3bceb39)
#29 0x00007ff692d760c9
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3b660c9)
#30 0x00007ff68f5cbc07
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x3bbc07)
#31 0x00007ff6987ddfe4
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x95cdfe4)
#32 0x00007ff6987dde8e
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x95cde8e)
#33 0x00007ff6987ddd4e
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x95cdd4e)
#34 0x00007ff6987de079
(d:\IUSERS\zahiraam\llorg_ws\llorg_may\deploy\win_debug\bin\clang.EXE+0x95ce079)
#35 0x00007ffecf657974 (C:\WINDOWS\System32\KERNEL32.DLL+0x17974)
#36 0x00007ffecfc1a271 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x6a271)</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>