[llvm-bugs] [Bug 36227] New: Template specialization assert in front-end on windows

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Feb 4 03:54:48 PST 2018


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

            Bug ID: 36227
           Summary: Template specialization assert in front-end on windows
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: u235axe at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19808
  --> https://bugs.llvm.org/attachment.cgi?id=19808&action=edit
Sample code, preprocessed sources, and dump file.

Template specialization assert is issued on the attached code, seem to be
happening only on windows, with latest LLVM build (28 January 2018).

Attached sample code, preprocessed sources, and dump file.

Visual Studio 2017, Version 15.4.5
Configuration: Debug and Release too

Compilation output:

1>clang-cl.exe : warning : argument unused during compilation: '/Gm'
[-Wunused-command-line-argument]
1>Assertion failed:
!SpecializedTemplate.is<SpecializedPartialSpecialization*>() && "Already set to
a class template partial specialization!", file
C:\src\llvm_package_323406\llvm\tools\clang\include\clang/AST/DeclTemplate.h,
line 1824
1>Wrote crash dump file "C:\Users\u235a\AppData\Local\Temp\CL.exe-a6dab6.dmp"
1>0x01760FF8 (0x00000016 0x045074F0 0x742A7340 0x00000003)
1>0x74233472 (0x0464C306 0x045074F0 0x07B22E40 0x0580AB34), abort() + 0x32
bytes(s)
1>0x74234D87 (0x00000720 0x07B274C8 0x07B22E40 0x0580AB44), _get_wpgmptr() +
0x1777 bytes(s)
1>0x742341EB (0x00000720 0x02B3D67D 0x0580AEE8 0x02B3D67D), _get_wpgmptr() +
0xBDB bytes(s)
1>0x74234E86 (0x0464C306 0x045074F0 0x00000720 0x07B27450), _wassert() + 0x16
bytes(s)
1>0x02B3D67D (0x0000026E 0x07B1E6D0 0x00000001 0x00000001)
1>0x02A4D19D (0x0000026E 0x07B1E780 0x0580AFE8 0x07B1E780)
1>0x02A4CEB0 (0x0580B070 0x07B1E6F0 0x07B144B8 0x0580B1B8)
1>0x02883C77 (0x0580B20C 0x00000005 0x00000265 0x07B274AC)
1>0x02B58E8F (0x0580B460 0x07B24C70 0x07B24CA4 0x00000000)
1>0x02B30605 (0x0580B460 0x07B24C70 0x07B24CA4 0x00000265)
1>0x02B2FE5E (0x00000265 0x07B24C70 0x0580B470 0x00000020)
1>0x02B2BD32 (0x0301E6A6 0x00000000 0x00000000 0x14EE8D6D)
1>0x0301ADEB (0x00000001 0x00000000 0x14EE8C31 0x0580B630)
1>0x029CDF9C (0x00000286 0x000002A9 0x07B24CB0 0x0580B6B0)
1>0x0286F538 (0x0580B640 0x07B24EA0 0x00000286 0x000002A9)
1>0x02C35A6D (0x07B24EA0 0x0580BB28 0x00000000 0x0580BC68)
1>0x02C37D85 (0x07B24EA0 0x00000000 0x0580CD00 0x00000002)
1>0x02C05155 (0x07B24EA0 0x07B24EA3 0x00000000 0x0580CD00)
1>0x02C048C8 (0x0580CDFC 0x07ADD1EF 0x00000002 0x0195535C)
1>0x0195530B (0x07AB41CC 0x07B193B0 0x0297817D 0x07B193B0)
1>0x0195535C (0x07B193B0 0x14EEF491 0x0580CFC4 0x07B27330)
1>0x0297817D (0x07B1C6A0 0x0000047E 0x00000012 0x07B27300)
1>0x0297A031 (0x0580CFC4 0x07B1C6A0 0x0000047E 0x00000012)
1>0x0293BD4A (0x0580CFC4 0x07B1C6A0 0x0000047E 0x00000039)
1>0x024FB148 (0x0580D068 0x07B27300 0x00000002 0x07B27300)
1>0x024FA481 (0x07B272C0 0x07B144B8 0x007AA1E3 0x14EEE901)
1>0x0195A8BA (0x0580D068 0x00000000 0x00000000 0x07B144B8)
1>0x024C5990 (0x0580D088 0x14EEE9A5 0x14EEE951 0x07A969FC)
1>0x01907FA7 (0x0580DA0C 0x0580D120 0x0273DA4F 0x00000000)
1>0x0273DA2E (0x0580D250 0x0580D210 0x00000000 0x00000000)
1>0x024C41D3 (0x0580D190 0x0580D190 0x0580D1B0 0x024819BA)
1>clang-cl.exe : error : clang frontend command failed due to signal (use -v to
see invocation)
1>clang version 7.0.0 (trunk)
1>Target: x86_64-pc-windows-msvc
1>Thread model: posix
1>InstalledDir: C:\Program Files (x86)\LLVM\msbuild-bin

-- 
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/20180204/e4ee9b5b/attachment-0001.html>


More information about the llvm-bugs mailing list