http://llvm.org/bugs/show_bug.cgi?id=18417
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: [email protected]
Reporter: [email protected]
CC: [email protected]
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
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...]
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs