[llvm-bugs] [Bug 30632] New: Name mangling issue with OpenMP

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 7 03:00:31 PDT 2016


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

            Bug ID: 30632
           Summary: Name mangling issue with OpenMP
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: andipeer at gmx.net
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17417
  --> https://llvm.org/bugs/attachment.cgi?id=17417&action=edit
Minimal working example for the bug to show up

When compiling the given code with OpenMP support enabled, the compiler raises
the error:

main.cpp:4:10: error: definition with same mangled name as another definition
    void g(const L&) { }
         ^
main.cpp:4:10: note: previous definition is here


Without OpenMP, everything works fine. GCC has no problem in compiling the
given code with OpenMP enabled.

The crucial point for this bug seems to be a combination of templates, lambdas,
and OpenMP. Removing one of these factors, the code compiles as expected.


Command line for compiling: "clang -std=c++11 -fopenmp main.cpp"

-- 
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/20161007/87592d79/attachment-0001.html>


More information about the llvm-bugs mailing list