From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16059 invoked by alias); 11 Jul 2004 23:40:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 16051 invoked by uid 48); 11 Jul 2004 23:40:11 -0000 Date: Sun, 11 Jul 2004 23:40:00 -0000 Message-ID: <20040711234011.16049.qmail@sourceware.org> From: "tobi at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040707093303.16404.jv244@cam.ac.uk> References: <20040707093303.16404.jv244@cam.ac.uk> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/16404] should reject invalid code with -pedantic -std=f95 ? (x8) X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg01208.txt.bz2 List-Id: ------- Additional Comments From tobi at gcc dot gnu dot org 2004-07-11 23:40 ------- I'm sorry, you're right. Number 6 is indeed invalid: I didn't see it when looking cursorily, because the syntactic rules and the constraints in the (draft F95) standard have a peculiar order, but the first constraint after R427 says: "If a component of a derived type is of a ttype declared to be private, either the derived type definition must contain the PRIVATE stement, or the derived type must be private." -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16404