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: unassignedclangb...@nondot.org
          Reporter: feni...@web.de
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to