From: Tim Prince <tprince@computer.org>
To: Dominique Dhumieres <dominiq@lps.ens.fr>
Cc: gcc@gcc.gnu.org, hubicka@ucw.cz, fortran@gcc.gnu.org
Subject: Re: Someone has caused regressions in gfortran (c_char_tests_red.f03, now PR33330)
Date: Fri, 07 Sep 2007 13:18:00 -0000 [thread overview]
Message-ID: <46E14FA7.5020606@computer.org> (raw)
In-Reply-To: <20070907123942.D2CC55BB46@mailhost.lps.ens.fr>
Dominique Dhumieres wrote:
> In comment #7 of PR33330, Richard Guenther asked the following question
> I cannot answer:
>
>> Btw, is it mandated by the fortran standard to pass a scalar as array
>> reference?
>
> Does anyone knows the answer? or should it be asked on comp.lang.fortran?
>
Here, it looks as if you mean passing a character string of length 1 as
a variable length string. Certainly, this should be no problem. Pardon
me if I misunderstood.
In either case, there should be plenty of references in c.l.f archives.
In general, passing a scalar where an array reference is required is
non-standard and a serious portability issue. Use of module or
interface syntax should cause any problems to be diagnosed.
For CHARACTER type, there is a distinction between an array (of
character strings, possibly of length 1) and a scalar character string.
next prev parent reply other threads:[~2007-09-07 13:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-07 12:39 Dominique Dhumieres
2007-09-07 12:47 ` François-Xavier Coudert
2007-09-07 13:07 ` Tobias Burnus
2007-09-07 13:18 ` Tim Prince [this message]
2007-09-07 13:38 ` Richard Guenther
-- strict thread matches above, loose matches on Subject: below --
2007-09-07 11:38 Dominique Dhumieres
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46E14FA7.5020606@computer.org \
--to=tprince@computer.org \
--cc=dominiq@lps.ens.fr \
--cc=fortran@gcc.gnu.org \
--cc=gcc@gcc.gnu.org \
--cc=hubicka@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).