public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "minzastro at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/53732] New: "mismatching comparison operand types" on compile
Date: Wed, 20 Jun 2012 14:55:00 -0000	[thread overview]
Message-ID: <bug-53732-4@http.gcc.gnu.org/bugzilla/> (raw)

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53732

             Bug #: 53732
           Summary: "mismatching comparison operand types" on compile
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: minzastro@yandex.ru


I have problems compiling my code on minGW gfortran 4.7.
This code does not compile:

program test
implicit none

real*8 arr(4, 4, 4, 4)

arr(:,:,:,:) = 1d0

arr(1, :, :, = sum(arr, dim=1, mask=(arr(:,:,:,:) > 0d0))

end program test

$gfortran test.f90
I get:
test.f90:1:0: ошибка: mismatching comparison operand types
real(kind=8)
integer(kind=4)
if (D.1895 > 0) goto <D.1896>; else goto <D.1897>;

(gfortran --version:
GNU Fortran (GCC) 4.7.0
Copyright (C) 2012 Free Software Foundation, Inc.)

There was also a report of the same problem with Mac OS X, version 10.7.4
(Lion)
and GNU Fortran (GCC) 4.8.0 20120603 (experimental)
Both Linux gfortran 4.7 & windows g95 are working ok.


             reply	other threads:[~2012-06-20 14:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-20 14:55 minzastro at yandex dot ru [this message]
2012-06-20 15:03 ` [Bug fortran/53732] [4.7/4.8 Regression] " dominiq at lps dot ens.fr
2012-06-20 16:40 ` burnus at gcc dot gnu.org
2012-06-20 17:19 ` burnus at gcc dot gnu.org
2012-06-20 20:41 ` mikael at gcc dot gnu.org
2012-06-21 12:49 ` mikael at gcc dot gnu.org
2012-06-21 15:08 ` dominiq at lps dot ens.fr
2012-06-21 20:33 ` dominiq at lps dot ens.fr
2012-06-22 11:24 ` mikael at gcc dot gnu.org
2012-07-05 15:18 ` mikael at gcc dot gnu.org
2012-07-06 19:51 ` mikael at gcc dot gnu.org
2012-07-06 19:54 ` mikael at gcc dot gnu.org
2012-12-18 16:40 ` dominiq at lps dot ens.fr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-53732-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).