------- Comment #5 from tobi at gcc dot gnu dot org 2007-04-07 17:04 ------- (In reply to comment #4) > (In reply to comment #3) > > But even if it is the case, the compiler should report an error. > > This is not a requirement of the standard but is a long standing regression, > relative to g77.
Really? From how I read the standard (F2K draft), UBOUND(ARRAY, DIM) has (in this case) "a value equal to the upper bound for subscript DIM of ARRAY". I can't see it allowing returning random values such as 2193121. -- tobi at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tobi at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31346