switch (default_kind)
        {
        case OMP_CLAUSE_DEFAULT_NONE:
          error ("%qs not specified in enclosing parallel",
                 IDENTIFIER_POINTER (DECL_NAME (decl)));
          error ("%Henclosing parallel", &ctx->location);

......
  n = splay_tree_lookup (ctx->variables, (splay_tree_key)decl);
  if (n != NULL)
    {
      if (n->value & GOVD_SHARED)
        {
          if (ctx == gimplify_omp_ctxp)
            error ("iteration variable %qs should be private",
                   IDENTIFIER_POINTER (DECL_NAME (decl)));
          n->value = GOVD_PRIVATE;
        }
      return true;
    }



--------
The gimplifier should not be emitting errors.


-- 
           Summary: Some OpenMP semantics are caught too late
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: openmp
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
OtherBugsDependingO 24222
             nThis:


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

Reply via email to