re PR bootstrap/68168 (r229609 breaks bootstrap)
authorCesar Philippidis <cesar@codesourcery.com>
Sat, 31 Oct 2015 17:55:03 +0000 (10:55 -0700)
committerCesar Philippidis <cesar@gcc.gnu.org>
Sat, 31 Oct 2015 17:55:03 +0000 (10:55 -0700)
PR Bootstrap/68168

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

From-SVN: r229631

gcc/fortran/ChangeLog
gcc/fortran/openmp.c

index 8b180ab..a7c2cef 100644 (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.
index 3fd19b8..e59139c 100644 (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