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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs