------- Comment #1 from ghazi at gcc dot gnu dot org  2009-09-21 15:04 -------
To reproduce, target x86_64-unknown-linux-gnu and compile g++.dg/gomp/pr37189.C
with:

cc1plus -quiet -v pr37189.C -dumpbase pr37189.C -mtune=generic -auxbase pr37189
-version -fopenmp -fpic -o pr37189.s
------------------------------------------------
// PR c++/37189
// { dg-do compile }
// { dg-options "-fopenmp" }

struct S
{
  S () {}
  S (S const &) {}
};

struct T
{
  S s;
};

void
bar (T &)
{
}

int
foo ()
{
  T t;
  #pragma omp task
    bar (t);
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41429

Reply via email to