From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30709 invoked by alias); 25 Jul 2007 22:09:18 -0000 Received: (qmail 30688 invoked by uid 48); 25 Jul 2007 22:09:09 -0000 Date: Wed, 25 Jul 2007 22:09:00 -0000 Message-ID: <20070725220909.30687.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/31818] Wrongly accepts namelists with assumed-sized arrays In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dfranke 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-07/txt/msg02624.txt.bz2 ------- Comment #3 from dfranke at gcc dot gnu dot org 2007-07-25 22:09 ------- One should think, this code whould pick it up?! /* Reject namelist arrays that are not constant shape. */ for (nl = sym->namelist; nl; nl = nl->next) { if (is_non_constant_shape_array (nl->sym)) { gfc_error ("The array '%s' must have constant shape to be " "a NAMELIST object at %L", nl->sym->name, &sym->declared_at); return FAILURE; } } -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfranke at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31818