This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18857] MATMUL failing with ALLOCATED matrices, unless base indices given
- From: "paulthomas2 at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Apr 2005 15:35:21 -0000
- Subject: [Bug fortran/18857] MATMUL failing with ALLOCATED matrices, unless base indices given
- References: <20041206185831.18857.paulthomas2@wanadoo.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From paulthomas2 at wanadoo dot fr 2005-04-25 15:35 -------
Subject: Re: MATMUL failing with ALLOCATED matrices, unless base indices given
>> The question remains: What to do with the offset field?
>> Fix it in the front end for static arrays, or remove it
>> altogether?
>
> The offset field is used for something like this:
> REAL, POINTER :: a(:), c(:)
> REAL, TARGET :: b(25)
> a => b(5:)
> c => a(3:)
> end
>
Nonetheless, matmul is the only case where this assertion is imposed in the
m4 functions. It doesn't do anything, except assert the "pathological
case".
I was going to consider all the variants tonight, including your example.
Your message has spurred me on.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18857