<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>windows on Kai Striega</title><link>http://kaistriega.com/tags/windows/</link><description>Recent content in windows on Kai Striega</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 08 Aug 2026 09:00:00 +1000</lastBuildDate><atom:link href="http://kaistriega.com/tags/windows/index.xml" rel="self" type="application/rss+xml"/><item><title>One Line of C</title><link>http://kaistriega.com/blog/msvc-internal-compiler-error/</link><pubDate>Sat, 08 Aug 2026 09:00:00 +1000</pubDate><guid>http://kaistriega.com/blog/msvc-internal-compiler-error/</guid><description>&lt;p&gt;Here is a C file:&lt;/p&gt;


&lt;div class="highlight"&gt;
 &lt;pre class="chroma"&gt;&lt;code&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;int&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;f&lt;/span&gt;(&lt;span style="color:#66d9ef"&gt;double&lt;/span&gt; x) { &lt;span style="color:#66d9ef"&gt;return&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;__builtin_isnan&lt;/span&gt;(x); }&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Here is what Microsoft&amp;rsquo;s C compiler does with it:&lt;/p&gt;


&lt;div class="highlight"&gt;
 &lt;pre class="chroma"&gt;&lt;code&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\Users\Kai\Documents&amp;gt;cl /c /Od isnan_ice.c
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Microsoft (R) C/C++ Optimizing Compiler Version 19.51.36252 for x64
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Copyright (C) Microsoft Corporation. All rights reserved.
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;isnan_ice.c
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\Users\Kai\Documents\isnan_ice.c : fatal error C1001: Internal compiler error.
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;(compiler file &amp;#39;D:\a\_work\1\s\src\vctools\Compiler\Utc\src\p2\main.cpp&amp;#39;, line 262)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; To work around this problem, try simplifying or changing the program near the locations listed above.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;The process exits with &lt;code&gt;-1073741819&lt;/code&gt;, which is &lt;code&gt;0xC0000005&lt;/code&gt;, which is an access violation.
The compiler didn&amp;rsquo;t decide to give up. It fell over.&lt;/p&gt;</description></item></channel></rss>