[LLVMbugs] [Bug 18417] New: Default recursive template instantiations is lower than recommended

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 8 01:13:44 PST 2014


            Bug ID: 18417
           Summary: Default recursive template instantiations is lower
                    than recommended
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++1y
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ken at fsfoundry.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

$ man gcc
           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).

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140108/168c74b1/attachment.html>

More information about the llvm-bugs mailing list