[Bug fortran/18857] MATMUL failing with ALLOCATED matrices, unless base indices given

paulthomas2 at wanadoo dot fr gcc-bugzilla@gcc.gnu.org
Mon Apr 25 15:35:00 GMT 2005


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



More information about the Gcc-bugs mailing list