This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] PATCH: Allow wide boz constants
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- Cc: GCC Fortran mailing list <fortran at gcc dot gnu dot org>,patch <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 06 Oct 2004 19:32:54 +0200
- Subject: Re: [gfortran] PATCH: Allow wide boz constants
- References: <41642B48.9010402@physik.uni-muenchen.de>
Tobias Schlüter wrote:
> /* Match a binary, octal or hexadecimal constant that can be found in
> - a DATA statement. */
> + a DATA statement. Since we don't know which variable we're going
> + to initialize, we determine the kind of the initialization from the
> + width of the boz constant. For instance, z'12' will be INTEGER*1,
> + o'01234567' will be INTEGER*2, etc. */
The latter example is wrong, and I will fix that.
I also forgot to mention that the standard says nothing about the kinds of
boz-literal-constants, so this is not introducing a language extension of any
kind.
-Tobi