This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: On character constants
- From: Arjen Markus <arjen dot markus895 at gmail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: Angelo Graziosi <angelo dot graziosi at alice dot it>, Fortran <fortran at gcc dot gnu dot org>
- Date: Tue, 2 Feb 2010 09:09:08 +0100
- Subject: Re: On character constants
- References: <4B675D03.4020903@alice.it> <4B67D8EB.7070800@net-b.de>
2010/2/2 Tobias Burnus <burnus@net-b.de>:
> The Fortran standard mandates that all strings in a constructor have the
> same length; I think this is a constraint, i.e. something a compiler has
> to diagnose - thus a check was added. I recall that we considered
> (continuing) to allow it as extension, but it was unclear how the proper
> length should be determined; one can construct corner cases where one
> really does not know which value would be "correct" - thus we simply
> follow the standard and let gfortran always reject it.
>
Hi Tobias,
just out of curiosity, can you give an example of such a corner case?
Regards,
Arjen