[LLVMbugs] [Bug 23685] clang crash on template meta-programming example
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu May 28 15:36:21 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23685
Nick Lewycky <nlewycky at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |nlewycky at google.com
Resolution|--- |INVALID
--- Comment #3 from Nick Lewycky <nlewycky at google.com> ---
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.
--
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/20150528/2b3a8e7a/attachment.html>
More information about the llvm-bugs
mailing list