[LLVMbugs] [Bug 23855] New: Generic lambda causes linker error when capturing non-POD object with implicit copy ctor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 15 18:10:52 PDT 2015


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

            Bug ID: 23855
           Summary: Generic lambda causes linker error when capturing
                    non-POD object with implicit copy ctor
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jvp4846 at g.rit.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14475
  --> https://llvm.org/bugs/attachment.cgi?id=14475&action=edit
Test case

Note: This sounds really similar to bug 22354, but it's still present in 3.6.

Compiling the attached test case under clang 3.6 succeeds, but *fails* during
linking:

  $ clang++-3.6 -std=c++1y test.cpp
  /tmp/test-1c245e.o: In function `see_the_animals()':
  test.cpp:(.text+0x1a): undefined reference to `zoo::zoo(zoo const&)'
  clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Here's my clang version (it should be from the LLVM apt repo):

  Ubuntu clang version 3.6.0-2ubuntu1~trusty1 (tags/RELEASE_360/final) (based
on LLVM 3.6.0)
  Target: x86_64-pc-linux-gnu
  Thread model: posix

-- 
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/20150616/fb6eff28/attachment.html>


More information about the llvm-bugs mailing list