re PR fortran/83803 (Using -fc-prototypes on modules with empty dummy arg lists does...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 13 Jan 2018 13:23:31 +0000 (13:23 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 13 Jan 2018 13:23:31 +0000 (13:23 +0000)
2018-01-13  Thomas Koenig <tkoenig@gcc.gnu.org>
<emsr@gcc.gnu.org>

PR fortran/83803
* dump-parse-tree.c (write_proc): Always emit closing parenthesis
for functions.

From-SVN: r256606

gcc/fortran/ChangeLog
gcc/fortran/dump-parse-tree.c

index f4289343cc1428e30ba65349bc57d91595ac4a3c..8f32e07babf41bad33282fe19ff305061af27804 100644 (file)
@@ -1,3 +1,10 @@
+2018-01-13  Thomas Koenig <tkoenig@gcc.gnu.org>
+       <emsr@gcc.gnu.org>
+
+       PR fortran/83803
+       * dump-parse-tree.c (write_proc): Always emit closing parenthesis
+       for functions.
+
 2018-01-10  Steven G. Kargl  <kargl@gcc.gnu.org>
 
        PR fortran/82367
index c2c9b63c8806a4c7cb9f416063e8cea477a7763a..5ead416e52317d488a13be92a22d68e9b6d62f65 100644 (file)
@@ -3194,9 +3194,10 @@ write_proc (gfc_symbol *sym)
       if (rok == T_WARN)
        fputs(" /* WARNING: non-interoperable KIND */ ", dumpfile);
 
-      fputs (f->next ? ", " : ")", dumpfile);
+      if (f->next)
+       fputs(", ", dumpfile);
     }
-  fputs (";\n", dumpfile);
+  fputs (");\n", dumpfile);
 }