------- Comment #6 from Catherine dot M dot Moroney at jpl dot nasa dot gov  
2007-04-17 23:09 -------
Subject: Re:  UBOUND as initialization expression (lacking simplification)

So, are you saying that LBOUND and UBOUND without the dimension
specifiers do not work at all?  Take the attached short test
program as an example.  If I comment out the assignment statement
from TCg_bband_coef_ranks to rank, then it compiles, but does it
actually work?  Is this program deceiving in that it compiles, but
underneath, is actually not working?  That's not good!

Catherine



On Apr 17, 2007, at 2:48 PM, fxcoudert at gcc dot gnu dot org wrote:

>
>
> ------- Comment #5 from fxcoudert at gcc dot gnu dot org  2007-04-17  
> 22:48 -------
> (In reply to comment #4)
>> By the way, the scalar version, i.e. removing "dimension" and using
>> "ubound(TCg_coef,1)", works.
>
> Hum, I know that one (although I never thought it would trigger a bug  
> when I
> encountered it): the simplication function for {U,L}BOUND doesn't  
> handle the
> array case (ie when the second parameter is not present). It should be  
> written,
> using the other array simplication functions as guidance.
>
> PS: other array intrinsics should be audited for the same problem
>
>
> --  
>
> fxcoudert at gcc dot gnu dot org changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------- 
> -----
>                  CC|                            |fxcoudert at gcc dot  
> gnu dot
>                    |                            |org
>       Known to fail|                            |4.1.3 4.2.0 4.3.0
>    Last reconfirmed|2007-04-16 20:42:01         |2007-04-17 22:48:46
>                date|                            |
>             Summary|ICE: on array initialization|UBOUND as  
> initialization
>                    |statement using 'ubound'    |expression (lacking
>                    |(fortran/trans-array.c:3693)|simplification)
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31591
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.


------- Comment #7 from Catherine dot M dot Moroney at jpl dot nasa dot gov  
2007-04-17 23:09 -------
Created an attachment (id=13383)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13383&action=view)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31591

Reply via email to