public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dick dot hendrickson at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/38863] WHERE with multiple elemental defined assignments gives wrong answer Date: Mon, 19 Jan 2009 22:31:00 -0000 [thread overview] Message-ID: <20090119223144.509.qmail@sourceware.org> (raw) In-Reply-To: <bug-38863-15620@http.gcc.gnu.org/bugzilla/> ------- Comment #4 from dick dot hendrickson at gmail dot com 2009-01-19 22:31 ------- Subject: Re: WHERE with multiple elemental defined assignments gives wrong answer On Mon, Jan 19, 2009 at 4:18 PM, mikael at gcc dot gnu dot org <gcc-bugzilla@gcc.gnu.org> wrote: > > > ------- Comment #3 from mikael at gcc dot gnu dot org 2009-01-19 22:18 ------- >> > I suspect the following is invalid as the arguments to the defined assignment >> > alias. >> > >> >> Why do you think it is invalid? > Because the arguments to the i_to_t (or l_to_t) alias. They point to the same > data. > I may be wrong however (actually it wouldn't be the first time when arguing > about standard conformance). I'm sure it is wrong with basic subroutines, but > mixing that with where, elemental and defined assignment doesn't make it clear. Defined assignment is sort of a special case. A statement like A = B is equivalent to CALL DEFINED_ROUTINE ( A, (B) ) The "extra" parenthesis allow something like A = A to work like CALL DEFINED_ROUTINE ( A, (A) ) and it is legal for the first argument to be intent(out) since the first and second arguments are different. See 12.3.2.1.2 in F95 Dick Hendrickson > >> For what it's worth, the test case compiles >> successfully with a different compiler. The larger program compiles with >> several other compilers. > And it compiles with gfortran too ;). > > > -- > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38863 > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38863
next prev parent reply other threads:[~2009-01-19 22:31 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-01-15 21:36 [Bug fortran/38863] New: " dick dot hendrickson at gmail dot com 2009-01-18 20:40 ` [Bug fortran/38863] " mikael at gcc dot gnu dot org 2009-01-18 21:37 ` dick dot hendrickson at gmail dot com 2009-01-19 22:18 ` mikael at gcc dot gnu dot org 2009-01-19 22:31 ` dick dot hendrickson at gmail dot com [this message] 2009-02-03 8:55 ` pault at gcc dot gnu dot org 2009-02-03 19:59 ` pault at gcc dot gnu dot org 2009-04-06 20:14 ` pault at gcc dot gnu dot org 2009-04-06 20:17 ` pault at gcc dot gnu dot org 2009-04-07 21:03 ` dominiq at lps dot ens dot fr 2009-04-08 4:33 ` burnus at gcc dot gnu dot org 2009-04-08 8:59 ` pault at gcc dot gnu dot org 2009-04-08 11:57 ` dominiq at lps dot ens dot fr 2009-04-10 14:27 ` pault at gcc dot gnu dot org 2009-04-10 19:07 ` pault at gcc dot gnu dot org 2009-04-14 15:16 ` domob at gcc dot gnu dot org 2009-04-30 17:03 ` pault at gcc dot gnu dot org 2009-05-10 7:24 ` pault at gcc dot gnu dot org 2009-05-10 8:56 ` pault at gcc dot gnu dot org 2009-05-10 15:35 ` pault at gcc dot gnu dot org
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=20090119223144.509.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /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: linkBe 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).