This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] PATCH: Allow wide boz constants


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]