From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 640 invoked by alias); 8 Aug 2013 21:24:23 -0000 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 Received: (qmail 577 invoked by uid 48); 8 Aug 2013 21:24:20 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/44978] derived types are resolved more than once Date: Thu, 08 Aug 2013 21:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.6.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00508.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44978 --- Comment #4 from janus at gcc dot gnu.org --- (In reply to janus from comment #3) > For another example, see PR 51945. In this case, the double resolution seems > to be related to the default initialization. Here is a reduced test case from this PR: type t end type type :: t2 end type type my_t type(t) :: y = t2() ! Invalid end type type(my_t) :: a end It gives three times the error message: type(t) :: y = t2() ! Invalid 1 Error: Can't convert TYPE(t2) to TYPE(t) at (1)