From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17139 invoked by alias); 22 Jan 2012 19:37:00 -0000 Received: (qmail 17130 invoked by uid 22791); 22 Jan 2012 19:36:59 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_XL 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; Sun, 22 Jan 2012 19:36:46 +0000 From: "dominique.pelletier at polymtl dot ca" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51946] file compiles properly on IBM xlf compiler and Cray compiler Date: Sun, 22 Jan 2012 20:15: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominique.pelletier at polymtl dot ca 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 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: 2012-01/txt/msg02538.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51946 --- Comment #7 from Dominique Pelletier 2012-01-22 19:36:44 UTC --- here is the full code i compileeach file separately with gfortran -c in the following order problems_parameter_module.f03 air_module.f03 clound_module.f03 ground_module.f03 integrable_model_module.f03 the error message is In function 'intgrate': internal compiler error: in conv_function_val. at fortran/trans-expr.c:2191 plese submitt a full bug report .... I use gfortran 4.7.1 build 2012.01.19 on a windowx xp laptop with MinGW Thnks Le 2012-01-22 12:45, burnus at gcc dot gnu.org a =C3=A9crit : > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51946 > > --- Comment #4 from Tobias Burnus 2012-01-22 = 17:45:27 UTC --- > (In reply to comment #0) >> Created attachment 26412 >> taken from Damian Rouson's book , allocate seems to be the culprit >> Source if from Damian Rouson from Sandia National Laboratories >> It compiles properly with IBM xlf and Cray fortran compilers. >> apparently the allocate statement >> Allocate ( localprdct, source =3D rhs) >> is the culprit > I have to admit that I could not find that allocate statement. Neither in= your > attachment nor in the book's resources available at > http://www.cambridge.org/rouson under "Resources available". > > However, I think it is the example chapter08/puppeteer_f2003. Using today= 's > version of gfortran, it works. I can reproduce a segmentation fault using > gfortran 4.7 of 2012-01-11. > > Could you try with a newer gfortran version? (We had some polymorphism-re= lated > fixes on the 13th, 16th and 18th of January.) > > * * * > > Otherwise, as far as I could see, all Fortran examples work except for > - those using a FINAL subroutine (not yet implemented) > - deferred-length strings as components of derived types (not yet impleme= nted) > - chapter07/strategy_surrogate_f2003: Segfaults in > __timed_lorenz_module_MOD___copy_timed_lorenz_module_Timed_lorenz > (not yet debugged) > - chapter09: Fails at MOVE_ALLOC, see PR 51948 > - chapter12/burgers_caf_v4: Issue with polymorphic coarrays, cf. PR 51947 > > [Disclaimer: That's with today's GCC 4.7 and with a patch applied for PR = 51870 > (alias PR48705) - I don't know whether it affects any result. In any case, > puppeteer_f2003 also works without that patch.] >