[llvm-bugs] [Bug 34351] New: constexpr function causes clang-cl to never stop compiling
llvm-bugs at lists.llvm.org
Mon Aug 28 12:37:53 PDT 2017
Bug ID: 34351
Summary: constexpr function causes clang-cl to never stop
OS: Windows NT
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: fenir50 at web.de
CC: llvm-bugs at lists.llvm.org
Created attachment 19056
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
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...
More information about the llvm-bugs