[llvm-bugs] [Bug 28445] New: Compilation never end

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 7 00:42:34 PDT 2016


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

            Bug ID: 28445
           Summary: Compilation never end
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bkarelb at hotmail.it
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16703
  --> https://llvm.org/bugs/attachment.cgi?id=16703&action=edit
The source code causing the problem

I was trying to compile a "simple" c++14 program using an implementation of
variant type(i think the one that will be included in the STL,
https://github.com/mpark/variant). After i start the compilation the program
never end. After some test i've noticed that if don't use the visit the variant
using the struct, the program compile and work as expected.

I think the problem is duo to the large number of types used to instantiate the
variant, and the visitor struct contain the same number of operator"()"
overloads for each type.

In previous version, with a self made variant container, clang-cl exit without
compiling, cause a name mangling problem(the length of the name was too long).

I'm using clang-cl, and as far i know i can't emit llvm code, so i can't give
you more information. I precise that i stopped clang through the task manager(
it showed the cpu usage at 35% - 38% and ram usage instead stop at about 46MB.

-- 
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/20160707/0f199a6b/attachment.html>


More information about the llvm-bugs mailing list