[llvm-bugs] [Bug 45811] New: Assertion failed Assertion failed: !hasUninstantiatedDefaultArg() && "Default argument is not yet instantiated!"

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 5 14:22:31 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45811

            Bug ID: 45811
           Summary: Assertion failed Assertion failed:
                    !hasUninstantiatedDefaultArg() && "Default argument is
                    not yet instantiated!"
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zahira.ammarguellat at intel.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

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 https://bugs.llvm.org/ 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)

-- 
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/20200505/cd34ce94/attachment.html>


More information about the llvm-bugs mailing list