https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90950

            Bug ID: 90950
           Summary: OpenMP clause handling rejecting references to
                    incomplete types in templates
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

template <typename T>
T
foo (void)
{
  T y = 0;
  T &x = y;
  #pragma omp parallel for lastprivate (x)
  for (int i = 0; i < 8; ++i)
    x = i;
  return x;
}

int a = foo<int> ();

is incorrectly rejected.

Reply via email to