[llvm-bugs] [Bug 34351] New: constexpr function causes clang-cl to never stop compiling

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 28 12:37:53 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34351

            Bug ID: 34351
           Summary: constexpr function causes clang-cl to never stop
                    compiling
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fenir50 at web.de
                CC: llvm-bugs at lists.llvm.org

Created attachment 19056
  --> https://bugs.llvm.org/attachment.cgi?id=19056&action=edit
The header file, causing the problem

So, I've come to you with a bug, which prevents my project from beeing
compiled. I'm using Visual Studio 2015, but with the LLVM-vs2014 configuration
(clang-cl). My target is a 64bit application for Windows. I used the newest
SnapShotBuild for Windows.

I've created some constexpr-functions, which - when used - causes the compiler
to never stop compiling. Clang doesn't crash, he just never finishes. Maybe he
will finish in some years, but I dont't want to try. I will now post my code,
sadly I don't know how to format my Comment, so I will add the code as an
attachment.

You will see a constexpr function, which generates a struct, returns it and two
functions, which will take MemberFunctionPointers from this creation. The code
compiles completly normal, when you remove the "constexpr" at line 59 and 65
(the functions, which return the pointers).

-- 
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/20170828/ba9f2dee/attachment.html>


More information about the llvm-bugs mailing list