From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3013 invoked by alias); 5 Oct 2012 00:15:14 -0000 Received: (qmail 2766 invoked by uid 48); 5 Oct 2012 00:14:57 -0000 From: "scott+gcc+bugzilla at pakin dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/54818] New: error: type mismatch in binary expression Date: Fri, 05 Oct 2012 00:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: scott+gcc+bugzilla at pakin 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: 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-10/txt/msg00379.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54818 Bug #: 54818 Summary: error: type mismatch in binary expression Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: scott+gcc+bugzilla@pakin.org Created attachment 28360 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D28360 Sample file that gfortran can't compile PGI can compile the attached file: $ pgf90 --version pgf90 12.5-0 64-bit target on x86-64 Linux -tp istanbul=20 Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. Copyright 2000-2012, STMicroelectronics, Inc. All Rights Reserved. $ pgf90 -c broken.f GCC cannot: $ gfortran --version GNU Fortran (GCC) 4.7.1 Copyright (C) 2012 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING $ gfortran -c broken.f broken.f: In function =E2=80=98broken=E2=80=99: broken.f:1:0: error: type mismatch in binary expression integer(kind=3D8) integer(kind=3D8) integer(kind=3D4) D.1918 =3D D.1867 + 8; broken.f:1:0: error: type mismatch in binary expression integer(kind=3D8) integer(kind=3D8) integer(kind=3D4) D.1922 =3D D.1867 + 8; broken.f:1: confused by earlier errors, bailing out