This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: PING: [patch, fortran] PR 27997: Implement F2003-style array constructor with typespec


> Ante-scriptum 1: Any news from you copyright assignment?

I asked at IRC and the answer was no. (Daniel wrote that he sent it on the 7th; in my case it took 5 days until I got the countersigned PDF; I was told ~2 weeks is normal while >1 month is not.)

FX wrote:
I apologize, I thought it was only possible to pad, not to reduce length. (The standard only shows one example, and it is extending length.)
Ah, ok. Then I misunderstood the problem. However, I still believe that it is valid. Section 4.7 contains:


"C494 (R466) If type-spec is omitted, each ac-value expression in the array-constructor shall have the same type and kind type parameters.
"C495 (R466) If type-spec specifies an intrinsic type, each ac-value expression in the array-constructor shall be of an intrinsic type that is in type 1 conformance with a variable of type type-spec as specified in Table 7.8."
[...] "If type-spec appears, it specifies the type and type parameters of the array constructor. Each ac-value expression in the array-constructor shall be compatible with intrinsic assignment to a variable of this type and type parameters."


The latter allows for this as a(1:1) = 'short' is valid.

The range check is already performed, I'm just asking for a testcase to be added.
Ok. I feared that it does not yet work. Ignore what I wrote.

I think this fails currently
I've also tested it before sending, and the example above currently works.
Great. Then I have of cause no objections to add them. (Still the other PR should be fixed at some point ;-)

Tobias


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