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] |
Giovanni Bajo wrote:I have no trouble with Tobi's proposal. The switch is a leftover from an early version.
I'd prefer 'if (ts->type == BT_CHARACTER) ... else ...;'.So that, when another value is added to the enumerator, the code will silently
select the "else" branch without anyone noticing, instead of triggering an
assert and thus requiring people to double-check the intended behaviour?
Even fortran 2003 will not require the introduction of new intrinsic types, will it?- I don't expect new types to be added to gfortran soon - new types will most probably not require string length information - the code ~10 lines above this hunk does exactly what you suggest
- Tobi
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |