<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:nlewycky@google.com" title="Nick Lewycky &lt;nlewycky&#64;google.com&gt;"> <span class="fn">Nick Lewycky</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed" title="RESOLVED INVALID - clang crash on template meta-programming example" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23685&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=5cs5a66xv4UaNToGH-ZQKlRGoIPpt4ZMnqK6m3FZZj0&s=Ua_wksJMOUqZbI5w0Md4fouvr7sfUTeVmfulzwptayU&e=">bug 23685</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>nlewycky@google.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed" title="RESOLVED INVALID - clang crash on template meta-programming example" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23685-23c3&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=5cs5a66xv4UaNToGH-ZQKlRGoIPpt4ZMnqK6m3FZZj0&s=M2ABIMaPveHBcYcGtOBh-Q3BfUOWMzVmWJb0BuCukv4&e=">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed" title="RESOLVED INVALID - clang crash on template meta-programming example" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23685&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=5cs5a66xv4UaNToGH-ZQKlRGoIPpt4ZMnqK6m3FZZj0&s=Ua_wksJMOUqZbI5w0Md4fouvr7sfUTeVmfulzwptayU&e=">bug 23685</a>
              from <span class="vcard"><a class="email" href="mailto:nlewycky@google.com" title="Nick Lewycky &lt;nlewycky&#64;google.com&gt;"> <span class="fn">Nick Lewycky</span></a>
</span></b>
        <pre>I get:

pr23685.cc:10:50: fatal error: recursive template instantiation exceeded
maximum
      depth of 256
template <int n = 0, uint8_t ...d> struct Calc : Calc<n + 1, d..., Solve(n, 0)>
                                                 ^
Your run script shows [...] "-ftemplate-depth" "101900". Yes, clang will
recurse and eat up stack space, those recursion depth limits are there to turn
these into crashes into fatal errors. If you set them to very large values,
clang will crash instead.</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>