<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Default recursive template instantiations is lower than recommended"
   href="http://llvm.org/bugs/show_bug.cgi?id=18417">18417</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Default recursive template instantiations is lower than recommended
          </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>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++1y
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ken@fsfoundry.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>N3690 annex B states:
- Recursively nested template instantiations, including substitution during
template argument deduction (14.8.2) [1024].

Though this is not a compliance issue, IMO, it would be nice if clang could do
-ftemplate-depth=1024 by default, which is the case with gcc (gcc-4.8 at
least).

$ man gcc
[snipped...]
       -ftemplate-depth=n
           Set the maximum instantiation depth for template classes to n.  A
limit on the template instantiation depth
           is needed to detect endless recursions during template class
instantiation.  ANSI/ISO C++ conforming
           programs must not rely on a maximum depth greater than 17 (changed
to 1024 in C++0x).
[snipped...]</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>