[LLVMbugs] [Bug 22378] New: Segment fault with deep constexpr recursion

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 28 19:21:33 PST 2015


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

            Bug ID: 22378
           Summary: Segment fault with deep constexpr recursion
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hghwng at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13754
  --> http://llvm.org/bugs/attachment.cgi?id=13754&action=edit
Code that failed to compile

The code attached tried to determine whether a big number is prime using
recursive constexpr function. The depth was increased:

clang++ t.cpp -std=c++11 -fconstexpr-depth=100000000

Clang++ should report error instead of exiting with segment fault.

-- 
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/20150129/810c55f2/attachment.html>


More information about the llvm-bugs mailing list