This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38863] WHERE with multiple elemental defined assignments gives wrong answer
- From: "mikael at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2009 22:18:32 -0000
- Subject: [Bug fortran/38863] WHERE with multiple elemental defined assignments gives wrong answer
- References: <bug-38863-15620@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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.
> 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