re PR bootstrap/68168 (r229609 breaks bootstrap)

PR Bootstrap/68168

	gcc/fortran/
	* openmp.c (resolve_omp_clauses): Pass &n->where when calling
	gfc_error.

From-SVN: r229631
This commit is contained in:
Cesar Philippidis 2015-10-31 10:55:03 -07:00 committed by Cesar Philippidis
parent 64c7c0953f
commit d057afcdca
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2015-10-31 Cesar Philippidis <cesar@codesourcery.com>
PR Bootstrap/68168
* openmp.c (resolve_omp_clauses): Pass &n->where when calling
gfc_error.
2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
* gfortran.h (gfc_omp_namespace): Add locus where member.

View File

@ -2922,7 +2922,7 @@ resolve_omp_clauses (gfc_code *code, gfc_omp_clauses *omp_clauses,
{
if (!code && (!n->sym->attr.dummy || n->sym->ns != ns))
gfc_error ("Variable %qs is not a dummy argument at %L",
n->sym->name, n->where);
n->sym->name, &n->where);
continue;
}
if (n->sym->attr.flavor == FL_PROCEDURE