------- Comment #2 from pault at gcc dot gnu dot org 2008-01-29 11:24 -------
(In reply to comment #1)
Note the comment in trans-expr.c(gfc_map_intrinsic_function) :
case GFC_ISYM_LBOUND:
case GFC_ISYM_UBOUND:
/* TODO These implementations of lbound and ubound do not limit if
the size < 0, according to F95's 13.14.53 and 13.14.113. */
We need an intrinsic function that translates to cond ? a : b to do the right
thing here. I could not see how to do it with existing front-endery.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34945