On Fri, May 23, 2014 at 01:08:09PM +0200, Thomas Schwinge wrote:
> @@ -5683,7 +5683,14 @@ omp_notice_variable (struct gimplify_omp_ctx *ctx,
> tree decl, bool in_code)
> switch (default_kind)
> {
> case OMP_CLAUSE_DEFAULT_NONE:
> - if ((ctx->region_type & ORT_TASK) != 0)
> + if (ctx->region_type == ORT_PARALLEL
> + || ctx->region_type == ORT_COMBINED_PARALLEL)
This should have been (ctx->region_type & ORT_PARALLEL) != 0 instead.
Jakub
