<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 - Access type node must be a valid scalar type (std::destroying_delete_t)"
href="https://bugs.llvm.org/show_bug.cgi?id=46908">46908</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Access type node must be a valid scalar type (std::destroying_delete_t)
</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>C++2a
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mikhail.strelnikov@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>blitzrakete@gmail.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23791" name="attach_23791" title="s-eb6fec.sh">attachment 23791</a> <a href="attachment.cgi?id=23791&action=edit" title="s-eb6fec.sh">[details]</a></span>
s-eb6fec.sh
Z:\b>type s.cpp
namespace std {
struct destroying_delete_t { explicit destroying_delete_t() = default; };
}
class t {
public:
void operator delete(t *, std::destroying_delete_t) {}
};
int main() {
delete new t;
}
Z:\b>"C:\Program Files\LLVM\bin\clang++.exe" -std=c++2a -O1 -g s.cpp
Access type node must be a valid scalar type
store %"struct.std::destroying_delete_t" undef,
%"struct.std::destroying_delete_t"* %coerce, align 1, !dbg !12, !tbaa !26
!26 = !{!27, !27, i64 0}
!27 = !{!"?AUdestroying_delete_t@std@@"}
in function main
fatal error: error in backend: Broken function found, compilation aborted!
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: C:\Program Files\LLVM\bin\clang++.exe -cc1 -triple
x86_64-pc-windows-msvc19.27.29109 -emit-obj -mincremental-linker-compatible
-disable-free -main-file-name s.cpp -mrelocation-model pic -pic-level 2
-mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -gno-column-info -gcodeview
-debug-info-kind=limited -resource-dir C:\Program Files\LLVM\lib\clang\12.0.0
-internal-isystem C:\Program Files\LLVM\lib\clang\12.0.0\include
-internal-isystem C:\Program Files (x86)\Microsoft Visual
Studio\2019\Preview\VC\Tools\MSVC\14.27.29109\include -internal-isystem
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Preview\VC\Tools\MSVC\14.27.29109\atlmfc\include -internal-isystem
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt
-internal-isystem C:\Program Files (x86)\Windows
Kits\10\include\10.0.19041.0\shared -internal-isystem C:\Program Files
(x86)\Windows Kits\10\include\10.0.19041.0\um -internal-isystem C:\Program
Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -O1 -std=c++2a
-fdeprecated-macro -fdebug-compilation-dir Z:\b -ferror-limit 19
-fno-use-cxa-atexit -fms-extensions -fms-compatibility
-fms-compatibility-version=19.27.29109 -fdelayed-template-parsing
-fno-implicit-modules -fcxx-exceptions -fexceptions -faddrsig -o
C:\Users\sms\AppData\Local\Temp\s-56fc7b.o -x c++ s.cpp
1. <eof> parser at end of file
2. Per-function optimization
3. Running pass 'Module Verifier' on function '@main'
clang++: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 12.0.0 (<a href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</a>
7d0b32c268ab4cfbc0630b2836890f2aef128d8b)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
clang++: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: C:\Users\sms\AppData\Local\Temp\s-eb6fec.cpp
clang++: note: diagnostic msg: C:\Users\sms\AppData\Local\Temp\s-eb6fec.sh
clang++: 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>