[Bug fortran/23151] print (buf, format), expression should be invalid
tkoenig at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue May 23 21:17:00 GMT 2006
------- Comment #3 from tkoenig at gcc dot gnu dot org 2006-05-23 21:17 -------
The previous patch was bogus. This one actually works:
Index: io.c
===================================================================
--- io.c (revision 113958)
+++ io.c (working copy)
@@ -2424,6 +2424,12 @@
dt->io_unit = default_unit (k);
goto get_io_list;
}
+ else
+ {
+ /* print (*,*) is invalid. */
+ if (k == M_PRINT)
+ goto syntax;
+ }
/* Match a control list */
if (match_dt_element (k, dt) == MATCH_YES)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23151
More information about the Gcc-bugs
mailing list