From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18397 invoked by alias); 12 Jul 2010 09:49:48 -0000 Received: (qmail 18387 invoked by uid 22791); 12 Jul 2010 09:49:47 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Jul 2010 09:49:41 +0000 Received: from hpaq13.eem.corp.google.com (hpaq13.eem.corp.google.com [172.25.149.13]) by smtp-out.google.com with ESMTP id o6C9ndJL018462 for ; Mon, 12 Jul 2010 02:49:39 -0700 Received: from bwz4 (bwz4.prod.google.com [10.188.26.4]) by hpaq13.eem.corp.google.com with ESMTP id o6C9mjwI005491 for ; Mon, 12 Jul 2010 02:49:38 -0700 Received: by bwz4 with SMTP id 4so2150324bwz.10 for ; Mon, 12 Jul 2010 02:49:37 -0700 (PDT) Received: by 10.204.6.74 with SMTP id 10mr10233021bky.203.1278928176869; Mon, 12 Jul 2010 02:49:36 -0700 (PDT) Received: from coign.google.com (dhcp-172-28-249-138.lul.corp.google.com [172.28.249.138]) by mx.google.com with ESMTPS id a9sm12206914bky.11.2010.07.12.02.49.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Jul 2010 02:49:35 -0700 (PDT) From: Ian Lance Taylor To: Cc: Subject: Re: internal compiler error References: Date: Mon, 12 Jul 2010 09:56:00 -0000 In-Reply-To: (Malte Mauelshagen's message of "Mon, 12 Jul 2010 09:54:10 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg00099.txt.bz2 writes: > i converted some files of my project from fixed-format (.f77) to free-for= mat (.f90) and divided the code into some subroutines. > Unfortunately now, there occurs a problem and i dont know how to solve: > > gfortran -x f95-cpp-input -ffast-math -m64 -w -O2 -frecord-marker=3D4 -D= twoD -UnoTecplotLib -Dturbvel -Dcaa -Dpurser -Dpartini -Dsweeping -Dltble -= Dfiltering -c ../MainSubs/PianoInterface.f90 2>&1 |tee PianoInterface.err > ../MainSubs/PianoInterface.f90: In function =E2=80=98initpiano=E2=80=99: > ../MainSubs/PianoInterface.f90:494: internal compiler error: in gfc_conv_= function_val, at fortran/trans-expr.c:1177 > Please submit a full bug report, > with preprocessed source if appropriate. > See for instructions. An "internal compiler error" always indicates a compiler bug. Since you are using gcc 4.1.2 and the current version is 4.5.0, one obvious approach to avoiding the problem is to try a newer version of the compiler. If that is impossible for some reason, then other things to try would be to compile that bit of code without optimization, or to just try to adjust the code until the error no longer occurs. I would not be at all surprised if this error occurs when the compiler is trying to handle code which is itself erroneous, so you should convince yourself that your code is correct. Ian