aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/io.c
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2009-08-25 01:05:11 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2009-08-25 01:05:11 +0000
commit72acf7207b27be1651148f90770f2066c5ef2ac8 (patch)
tree6b01a0897106938932835b7346bc812a7b1a3610 /gcc/fortran/io.c
parent033e7d21e5c989d3b0c3e6c42eb050f22f98d394 (diff)
downloadgcc-72acf7207b27be1651148f90770f2066c5ef2ac8.zip
gcc-72acf7207b27be1651148f90770f2066c5ef2ac8.tar.gz
gcc-72acf7207b27be1651148f90770f2066c5ef2ac8.tar.bz2
re PR fortran/41154 (Comma required after P descriptor)
2009-08-24 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/41154 * io.c (check_format): Fix to not error on right paren after P. From-SVN: r151070
Diffstat (limited to 'gcc/fortran/io.c')
-rw-r--r--gcc/fortran/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c
index 7191a58..239d1e2 100644
--- a/gcc/fortran/io.c
+++ b/gcc/fortran/io.c
@@ -694,7 +694,7 @@ data_desc:
goto fail;
if (gfc_option.allow_std < GFC_STD_F2003 && t != FMT_COMMA
&& t != FMT_F && t != FMT_E && t != FMT_EN && t != FMT_ES
- && t != FMT_D && t != FMT_G)
+ && t != FMT_D && t != FMT_G && t != FMT_RPAREN)
{
error = _("Comma required after P descriptor");
goto syntax;
@@ -708,7 +708,7 @@ data_desc:
goto fail;
}
if (t != FMT_F && t != FMT_E && t != FMT_EN && t != FMT_ES && t != FMT_D
- && t != FMT_G)
+ && t != FMT_G && t != FMT_RPAREN)
{
error = _("Comma required after P descriptor");
goto syntax;