[LLVMbugs] [Bug 12896] Stack overflow with recursive constexpr

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 8 00:46:56 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=12896

jonathan.sauer at gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from jonathan.sauer at gmx.de ---
Fixed in r192096 or before:

% ~/LLVM/build/Release+Asserts/bin/clang++ -std=c++11 clang.cpp
clang.cpp:938:13: fatal error: recursive template instantiation exceeded
maximum depth of 256 [...]

As recursively instantiating <sumHelper> itself is correct, replacing the crash
with an appropriate error message fixes this bug. Closing.

-- 
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/20131008/c8e42712/attachment.html>


More information about the llvm-bugs mailing list