This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31591] UBOUND as initialization expression (lacking simplification)
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Apr 2007 21:48:46 -0000
- Subject: [Bug fortran/31591] UBOUND as initialization expression (lacking simplification)
- References: <bug-31591-14410@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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