From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25720 invoked by alias); 28 Jan 2015 13:37:14 -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 25627 invoked by uid 48); 28 Jan 2015 13:37:09 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64757] [5 Regression] ICE in fold_convert_loc, at fold-const.c:2353 Date: Wed, 28 Jan 2015 13:37: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: 5.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 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: 2015-01/txt/msg03238.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64757 --- Comment #8 from Paul Thomas --- (In reply to Dominique d'Humieres from comment #4) > > It it certainly related, but I'm not sure it is an exact duplicate. > > In particular the above PR has quite a history and includes several > > test cases. Let's keep it separate for now. > > I disagree. AFACT this PR gives the same ICE as the test in pr49213 comment > 8 or the following variant of the original code > > program main > > type :: S > integer :: n > end type > type(S) :: Sobj > > type, extends(S) :: S2 > integer :: m > end type > type(S2) :: S2obj > > type :: T > class(S), allocatable :: x > end type > type(T) :: Tobj > > Sobj = S(1) > Tobj = T(Sobj) > > S2obj = S2(1,2) > print *, S2obj%n, S2obj%m > > end program > > Actually pr49213 is a collection of different bugs, one being this PR. IMO > pr49213 should be split along the different bugs. The patch of comment #7 fixes the above as well. Cheers Paul