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