From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7430 invoked by alias); 7 Apr 2007 16:04:12 -0000 Received: (qmail 7305 invoked by uid 48); 7 Apr 2007 16:04:01 -0000 Date: Sat, 07 Apr 2007 16:04:00 -0000 Message-ID: <20070407160401.7304.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/31346] wrong values for ubound and size of deferred shape arrays In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tobi at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-04/txt/msg00508.txt.bz2 ------- 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