https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70376
Bug ID: 70376 Summary: OpenMP taskloop construct fails to instantiate copy constructor(same as Bug 48869) Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: bbenin at gmail dot com, jakub at gcc dot gnu.org, jason at gcc dot gnu.org, rguenth at gcc dot gnu.org, rth at gcc dot gnu.org Depends on: 48869 Target Milestone: --- +++ This bug was initially created as a clone of Bug #48869 +++ template<typename T> struct A { A() { } A(const A&) { } void foo() { } }; int main () { A<int> a; #pragma omp taskloop for (int i = 0; i < 64; i++) a.foo(); return 0; } $ .../gcc/xg++ -B .../gcc/ -fopenmp -o pr48869 pr48869.C -B .../x86_64-pc-linux-gnu/libgomp/ -L .../x86_64-pc-linux-gnu/libgomp/.libs/ -L .../x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/ /tmp/ccMYsukb.o: In function `main._omp_cpyfn.1': pr48869.C:(.text+0xcc): undefined reference to `A<int>::A(A<int> const&)' collect2: error: ld returned 1 exit status Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48869 [Bug 48869] [4.5 Regression] OpenMP task construct fails to instantiate copy constructor(same as Bug 36523)