Boost C++ Libraries: Ticket #4160: Karma/qi rules in a 0x lambda crashes VC10 with internal compiler error https://svn.boost.org/trac10/ticket/4160 <p> Defining a Karma or Qi rule in a C++0x lambda in VC10 RTM crashes the compiler with an internal compiler error. </p> <p> I have reproduced this with trunk (<a class="changeset" href="https://svn.boost.org/trac10/changeset/61638" title="hash: initial code dump">r61638</a>) and 1.42.0. </p> <p> Complete test case and build output follows: </p> <pre class="wiki">#include &lt;boost/spirit/include/karma.hpp&gt; int main() { []() { boost::spirit::karma::rule&lt;char*&gt; r; }; } </pre><pre class="wiki">1&gt;------ Build started: Project: Testbed10, Configuration: Release X64 ------ 1&gt; main.cc 1&gt; using native typeof 1&gt;main.cc(8): fatal error C1001: An internal error has occurred in the compiler. 1&gt; (compiler file 'msc1.cpp', line 1420) 1&gt; To work around this problem, try simplifying or changing the program near the locations listed above. 1&gt; Please choose the Technical Support command on the Visual C++ 1&gt; Help menu, or open the Technical Support help file for more information ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4160 Trac 1.4.3 Hartmut Kaiser Wed, 28 Apr 2010 13:17:08 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4160#comment:1 https://svn.boost.org/trac10/ticket/4160#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Well, I'm not sure what we could do about this. It's a compiler bug (as it compiles fine using g++). </p> <p> Regards Hartmut </p> Ticket