From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15420 invoked by alias); 3 Oct 2006 14:38:10 -0000 Received: (qmail 15389 invoked by uid 48); 3 Oct 2006 14:38:02 -0000 Date: Tue, 03 Oct 2006 14:38:00 -0000 Message-ID: <20061003143802.15388.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/29232] No warning/error for duplicate construct name In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pault at gcc dot gnu dot org" 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 X-SW-Source: 2006-10/txt/msg00223.txt.bz2 List-Id: ------- Comment #1 from pault at gcc dot gnu dot org 2006-10-03 14:38 ------- Created an attachment (id=12377) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12377&action=view) This fixes the bug. This has to be sorted out at resolution time because it is the label 'vortex' that blocks the host association of the derived type 'vortex'. Thus we wit until resolving the symbols in a namespace and use the logic: if variable is of host associated derived type { if a symbol is present in the variable's namespace that is not a derived type or is not an identical derived type { error ("the symbol blocks the derived type") return FAILURE } } As soon as the allocatable components are out of the door, I will submit this with a test case. Paul -- pault at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29232