This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gomp] Add some diagnostics


On Thu, Sep 22, 2005 at 10:35:06AM -0400, Diego Novillo wrote:
> +  #pragma omp for
> +  for (i = 0; ; i--)
> +    {
> +      if (i >= 10)
> +	break;
> +      baz (i);
> +    }		/* { dg-error "missing controlling predicate" } */

We should fix the diagnostics to put the error at the for.
There's pleanty of places in the regular grammar that save
the locus for things like this.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]