Gfortran problem with elemental & operator overloading

Tobias Burnus burnus@net-b.de
Wed Jan 13 21:26:00 GMT 2010


On 13.01.2010 21:27 Armelius Cameron wrote:
> I include a test program to illustrate the problem. This sample code is an
> extract from a larger program, as I was trying to isolate the smallest parts
> that still reproduce the error, therefore some of it would seem rather
> contrived.
>   

The problem looks like a compiler bug. It works correctly with GCC 4.2
but it fails with GCC 4.3/4.4/4.5. I have filled a problem report at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42736

As I have not checked the cause, I cannot really give a solution (such
as a work around); though we try to fix it before the on 4.5.0 release.

Thanks for the report!

Tobias



More information about the Fortran mailing list