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: PR fortran/19269 (partial fix): Lengths of reshaped arrays


On Sep 6, 2005, at 2:37 PM, Tobias Schlüter wrote:

For PARAMETERs the characters may have different length,

Not in the standard. In fact, the standard doesn't have much in the way of special cases for PARAMETERS. Mostly they fall under the general category of initialization expressions, which don't allow this. The only thing I can think of that is special for PARAMETERS is the way that length=* can "pick up" the length from the expression, but that doesn't mean that the expression can include array constructors that have ragged lengths.


If one were to do an extension restricted to initialization expressions, that would certainly avoid the worst of the complications (no user functions, everything determinable at compile time). I'd just expect such an extension with such a restriction to generate as many questions as answers.

I'm not recommending such an extension - just commenting about the possibility.

--
Richard Maine                |  Good judgment comes from experience;
Richard.Maine@nasa.gov       |  experience comes from bad judgment.
                            |        -- Mark Twain


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