From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21487 invoked by alias); 15 Jan 2015 09:23:48 -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 21413 invoked by uid 48); 15 Jan 2015 09:23:41 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64578] [OOP] Seg-fault and ICE with unlimited polymorphic array pointer function Date: Thu, 15 Jan 2015 09:23: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, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault 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: cc 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/msg01298.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64578 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org --- Comment #9 from Paul Thomas --- I had a quick look this morning to see if I could understand the reason for the last remark of my previous comment. The statements responsible for setting the _data and the _vptr fields of class.11 are certainly visited but never make it into the code. It is as if the parmse.pre and .post are not added. I could not see why. If the rhs of the pointer assignment to return_pointer is set to NULL(), the code behaves correctly. I'll give it another go tonight. Paul