This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran, openmp] PR43711 - report unexpected junk after OMP statements
On Tue, May 11, 2010 at 06:23:58PM +0200, Daniel Franke wrote:
> On Tuesday 11 May 2010 18:26:29 Jakub Jelinek wrote:
> > On Tue, May 11, 2010 at 06:11:03PM +0200, Daniel Franke wrote:
> > > --- openmp.c (revision 159211)
> > > +++ openmp.c (working copy)
> > > @@ -467,7 +467,10 @@ match
> > >
> > > gfc_match_omp_taskwait (void)
> > > {
> > >
> > > if (gfc_match_omp_eos () != MATCH_YES)
> > >
> > > - return MATCH_ERROR;
> > > + {
> > > + gfc_error("Unexpected junk after TASKWAIT clause at %C");
> >
> > Add a space before ( (occurs many times in the patch).
>
> Done.
>
> Otherwise ok to commit?
I'm not 100% sure about the "Unexpected junk" wording, but I see the Fortran
FE already uses it elsewhere, so yes, this is ok.
Jakub