diff options
author | Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de> | 2004-05-15 20:10:06 +0200 |
---|---|---|
committer | Tobias Schlüter <tobi@gcc.gnu.org> | 2004-05-15 20:10:06 +0200 |
commit | feb357a3360f03fa3439b437c0d255be0c14e54b (patch) | |
tree | e63b96a94a55aed18f6081e23cd2261a095ebb00 /gcc/fortran/primary.c | |
parent | d663434b6cd9ae8cbaac50a8c1dcff317594184d (diff) | |
download | gcc-feb357a3360f03fa3439b437c0d255be0c14e54b.tar.gz |
re PR fortran/13826 (Derived types in DATA statements not PARAMETERs)
testsuite:
PR fortran/13826
PR fortran/13940
* gfortran.fortran-torture/compile/data_1.f90: New test.
(add second test)
fortran:
* primary.c (match_boz_constant): Use gfc_notify_std() for
issuing a warning or an error.
From-SVN: r81892
Diffstat (limited to 'gcc/fortran/primary.c')
-rw-r--r-- | gcc/fortran/primary.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c index d10a46244e9..0e7e7e796aa 100644 --- a/gcc/fortran/primary.c +++ b/gcc/fortran/primary.c @@ -255,9 +255,12 @@ match_boz_constant (gfc_expr ** result) rname = "octal"; break; case 'x': - if (pedantic) - gfc_warning_now ("Hexadecimal constant at %C uses non-standard " - "syntax. Use \"Z\" instead."); + if (pedantic + && (gfc_notify_std (GFC_STD_GNU, "Extension: Hexadecimal " + "constant at %C uses non-standard syntax.") + == FAILURE)) + goto backup; + /* Fall through. */ case 'z': radix = 16; |