aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/io.c
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>2005-12-03 16:32:04 +0100
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2005-12-03 15:32:04 +0000
commita34a91f0b73dad394cd0db44f5702406c09a06c6 (patch)
treefed5540ea5770fb73224878dea9cced4affb486c /gcc/fortran/io.c
parent1b2bb2edfa74093b2926ca0673e845edd7f5f8a5 (diff)
downloadgcc-a34a91f0b73dad394cd0db44f5702406c09a06c6.zip
gcc-a34a91f0b73dad394cd0db44f5702406c09a06c6.tar.gz
gcc-a34a91f0b73dad394cd0db44f5702406c09a06c6.tar.bz2
re PR fortran/25106 ([4.0/4.1] statement label is zero)
PR fortran/25106 * parse.c (next_free): Use new prototype for gfc_match_st_label. Correctly emit hard error if a label is zero. * match.c (gfc_match_st_label): Never allow zero as a valid label. (gfc_match, gfc_match_do, gfc_match_goto): Use new prototype for gfc_match_st_label. * primary.c (): Use new prototype for gfc_match_st_label. * io.c (): Likewise. * match.h: Likewise. From-SVN: r107999
Diffstat (limited to 'gcc/fortran/io.c')
-rw-r--r--gcc/fortran/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c
index 9ef97e8..6adc1ef 100644
--- a/gcc/fortran/io.c
+++ b/gcc/fortran/io.c
@@ -1591,7 +1591,7 @@ match_dt_format (gfc_dt * dt)
return MATCH_YES;
}
- if (gfc_match_st_label (&label, 0) == MATCH_YES)
+ if (gfc_match_st_label (&label) == MATCH_YES)
{
if (dt->format_expr != NULL || dt->format_label != NULL)
{