<html>
<head>
<base href="https://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 --- - crash with pointer to member function"
href="https://llvm.org/bugs/show_bug.cgi?id=26313">26313</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>crash with pointer to member function
</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 NT
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alex@lanin.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15716" name="attach_15716" title="code in question">attachment 15716</a> <a href="attachment.cgi?id=15716&action=edit" title="code in question">[details]</a></span>
code in question
clang crashes when compiling attached file
(I know the delete[] looks strange, but it shouldn't crash)
clang -v -m32 -target i686-pc-windows-msvc -O0 crash.cpp
output:
clang version 3.9.0
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Git\build\RelWithDebInfo\bin
"C:\\Git\\build\\RelWithDebInfo\\bin\\clang.exe" -cc1 -triple
i686-pc-windows-msvc18.0.0 -emit-obj -mrelax-all
-mincremental-linker-compatible -disable-free -main-file-name crash.cpp
-mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -target-cpu pentium4 -v -dwarf-column-info
-debugger-tuning=gdb -resource-dir
"C:\\Git\\build\\RelWithDebInfo\\bin\\..\\lib\\clang\\3.9.0" -internal-isystem
"C:\\Git\\build\\RelWithDebInfo\\bin\\..\\lib\\clang\\3.9.0\\include"
-internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio
12.0\\VC\\include" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\shared" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\um" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\winrt" -O0 -fdeprecated-macro -fdebug-compilation-dir
"Z:\\" -ferror-limit 19 -fmessage-length 0 -fms-extensions -fms-compatibility
-fms-compatibility-version=18 -std=c++11 -fno-threadsafe-statics
-fdelayed-template-parsing -fobjc-runtime=gcc -fdiagnostics-show-option -o
"C:\\Programme\\di_tools_cygwin_3\\tmp\\crash-aef386.o" -x c++ crash.cpp
clang -cc1 version 3.9.0 based upon LLVM 3.9.0svn default target
i686-pc-windows-msvc
#include "..." search starts here:
#include <...> search starts here:
C:\Git\build\RelWithDebInfo\bin\..\lib\clang\3.9.0\include
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include
C:\Program Files (x86)\Windows Kits\8.1\include\shared
C:\Program Files (x86)\Windows Kits\8.1\include\um
C:\Program Files (x86)\Windows Kits\8.1\include\winrt
End of search list.
Assertion failed: ConvertTypeForMem(DeleteTy) == Ptr.getElementType(), file
C:\Git\llvm\tools\clang\lib\CodeGen\CGExprCXX.cpp, line 1733
#0 0x00df30e9 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xda30e9)
#1 0x52314aae raise (C:\Windows\system32\MSVCR120.dll+0xa4aae)
#2 0x5231764e abort (C:\Windows\system32\MSVCR120.dll+0xa764e)
#3 0x01111386 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x10c1386)
#4 0x010c266c (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x107266c)
#5 0x010bfe56 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x106fe56)
#6 0x01019111 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xfc9111)
#7 0x0101ffca (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xfcffca)
#8 0x010b7c4a (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1067c4a)
#9 0x010b61a9 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x10661a9)
#10 0x010b613b (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x106613b)
#11 0x010b797a (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x106797a)
#12 0x010b7ba9 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1067ba9)
#13 0x010cf260 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x107f260)
#14 0x00ffd527 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xfad527)
#15 0x00fc5dcf (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xf75dcf)
#16 0x0104256b (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xff256b)
#17 0x0104262e (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xff262e)
#18 0x00f46e8c (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xef6e8c)
#19 0x00f46ab4 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xef6ab4)
#20 0x0103b5f6 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xfeb5f6)
#21 0x00f48deb (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xef8deb)
#22 0x0212eecd (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x20deecd)
#23 0x0212dc50 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x20ddc50)
#24 0x01711265 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x16c1265)
#25 0x011e7a3f (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1197a3f)
#26 0x0212d962 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x20dd962)
#27 0x011e78ec (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x11978ec)
#28 0x011c5ef0 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1175ef0)
#29 0x01242dab (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x11f2dab)
#30 0x000bf62a (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x6f62a)
#31 0x000ba539 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x6a539)
#32 0x000bd087 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x6d087)
#33 0x020623e4 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x20123e4)
#34 0x76b5338a BaseThreadInitThunk (C:\Windows\syswow64\kernel32.dll+0x1338a)
#35 0x771697f2 RtlInitializeExceptionChain
(C:\Windows\SysWOW64\ntdll.dll+0x397f2)
#36 0x771697c5 RtlInitializeExceptionChain
(C:\Windows\SysWOW64\ntdll.dll+0x397c5)
clang.exe: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Git\build\RelWithDebInfo\bin
clang.exe: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang.exe: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang.exe: note: diagnostic msg:
C:\Programme\di_tools_cygwin_3\tmp\crash-2f1e03.cpp
clang.exe: note: diagnostic msg:
C:\Programme\di_tools_cygwin_3\tmp\crash-2f1e03.sh
clang.exe: note: diagnostic msg:
********************</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>