From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10908 invoked by alias); 4 Aug 2011 18:07:25 -0000 Received: (qmail 10899 invoked by uid 22791); 4 Aug 2011 18:07:24 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Aug 2011 18:07:11 +0000 From: "wangmianzhi1 at linuxmail dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/49962] [OOP] ICE when using type-bound function returning vector X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wangmianzhi1 at linuxmail dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Thu, 04 Aug 2011 18:07:00 -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 X-SW-Source: 2011-08/txt/msg00556.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49962 --- Comment #5 from wangmianzhi 2011-08= -04 18:07:07 UTC --- On 2011=E5=B9=B408=E6=9C=8804=E6=97=A5 13:59, janus at gcc dot gnu.org wrot= e: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49962 > > janus at gcc dot gnu.org changed: > > What |Removed |Added > -------------------------------------------------------------------------= --- > CC| |janus at gcc dot gnu.org > Summary|"internal compiler error" |[OOP] ICE when using > |when using type-bounded |type-bound function > |function returning vector |returning vector > > --- Comment #4 from janus at gcc dot gnu.org 2011-08-04 17:58:55 UTC --- > This is certainly a duplicate of PR49961, and has been fixed by r160622, = which > could also be backported to the 4.5 branch. > > Since we got two apparently independent bug reports for this on the same = day: > Is there any "real-world" code which is affected by this bug? Or in other > words: How did you come across this bug? We can simply use subroutine instead of function to return vectors. But=20 I think it would be definitely not as decent as using functions for the=20 case of type-bounded procedures. I think it would make many people's life easier if this fix could be=20 back ported to 4.5, considering the fact that most clusters for=20 engineering computation tend to use old compilers. Thanks. Mianzhi