This is the mail archive of the gcc-bugs@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]

[Bug fortran/38863] WHERE with multiple elemental defined assignments gives wrong answer



------- 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


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