fortran/dump-parse-tree.c: Use proper enum type
authorTobias Burnus <tobias@codesourcery.com>
Wed, 23 Jun 2021 20:10:43 +0000 (22:10 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 23 Jun 2021 20:10:43 +0000 (22:10 +0200)
gcc/fortran/ChangeLog:

* dump-parse-tree.c (show_omp_clauses): Fix enum type used
for dumping gfc_omp_defaultmap_category.

gcc/fortran/dump-parse-tree.c

index 07e98b7..26841ee 100644 (file)
@@ -1781,7 +1781,7 @@ show_omp_clauses (gfc_omp_clauses *omp_clauses)
       if (i != OMP_DEFAULTMAP_CAT_UNCATEGORIZED)
        {
          fputc (':', dumpfile);
-         switch ((enum gfc_omp_defaultmap) i)
+         switch ((enum gfc_omp_defaultmap_category) i)
            {
            case OMP_DEFAULTMAP_CAT_SCALAR: dfltmap = "SCALAR"; break;
            case OMP_DEFAULTMAP_CAT_AGGREGATE: dfltmap = "AGGREGATE"; break;