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gfHSoSIJKdzDiwoS6rif7-daaB0W5i1S6gd80tmZVyR9QF9huBp0C1YHilaQy4YO7HhEWAyaR3WvfEbEtESfcEErpa0T7KShnKPR0ab-Va9fNs2WOhpYF8ueDJSBYPuWL49kmWer2WI6hnoIU1jtz5U0nMHeDynvh5Q3O6S8TDzvXPEKrnh5LxMK81VWPL6PDFefCV_nfJWv6IS2bq_N-kAtremkNfLpZVG4fYtWNJarnd8N4Y_gTekOGLp8J6xtfZbsLvI0W0z26zlj5QqKkqfZHBvLxYryZMEgT4ocYJFNJC1A2nV04QEruI87Ex7mxXbyegRi7c9USeo_eXaRTKEss3yxzIHm87Tk82iWAO5UOfV2_D14YtadSSyBFpVSWGdPSmrR4wqgA4wInXAS1p82H2O8FnY13TzEcMT8tt1NUZePLqsxFsfumjqddEDXHcp_AMM0ldw>53127</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
ICE on ternary expression of __debugbreak and void.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vasama
</td>
</tr>
</table>
<pre>
https://godbolt.org/z/jW4M63vKj
```CPP
# 1 "<built-in>"
# 1 "test.cpp"
bool e();
void f()
{
e() ? __debugbreak() : void();
}
```
```SH
# Crash reproducer for clang version 12.0.0
# Driver args: "test.cpp"
# Original command: "C:\\Program Files\\LLVM\\bin\\clang.exe" "-cc1" "-triple" "x86_64-pc-windows-msvc19.29.30130" "-emit-obj" "-mrelax-all" "-mincremental-linker-compatible" "--mrelax-relocations" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "test.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-mframe-pointer=none" "-fmath-errno" "-fno-rounding-math" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-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\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.29.30130\\include" "-internal-isystem" "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.29.30130\\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" "-fdeprecated-macro" "-fdebug-compilation-dir" "C:\\Users\\Untelo\\sandbox" "-ferror-limit" "19" "-fmessage-length=141" "-fno-use-cxa-atexit" "-fms-extensions" "-fms-compatibility" "-fms-compatibility-version=19.29.30130" "-std=c++14" "-fdelayed-template-parsing" "-fcxx-exceptions" "-fexceptions" "-fcolor-diagnostics" "-faddrsig" "-o" "C:\\Users\\Untelo\\AppData\\Local\\Temp\\test-832947.o" "-x" "c++" "test.cpp"
"C:\\Program Files\\LLVM\\bin\\clang.exe" "-cc1" "-triple" "x86_64-pc-windows-msvc19.29.30130" "-emit-obj" "-mrelax-all" "-mincremental-linker-compatible" "--mrelax-relocations" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "test.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-mframe-pointer=none" "-fmath-errno" "-fno-rounding-math" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-fdeprecated-macro" "-ferror-limit" "19" "-fmessage-length=141" "-fno-use-cxa-atexit" "-fms-extensions" "-fms-compatibility" "-fms-compatibility-version=19.29.30130" "-std=c++14" "-fdelayed-template-parsing" "-fcxx-exceptions" "-fexceptions" "-fcolor-diagnostics" "-faddrsig" "-x" "c++" "test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