public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/101123] New: [11/12 Regression] Invalid code for MAX0 with -fdefault-integer-8
@ 2021-06-18 13:03 rguenth at gcc dot gnu.org
  2021-06-18 13:04 ` [Bug fortran/101123] " rguenth at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-18 13:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101123

            Bug ID: 101123
           Summary: [11/12 Regression] Invalid code for MAX0 with
                    -fdefault-integer-8
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

> cat TESTN.f 
      IMPLICIT DOUBLE PRECISION (A-H,O-R,T-Z), INTEGER*4 (I-N)
      COMMON KN(100)
      KN(3)=10
      KN(4)=20
      CALL TEST
C
      STOP  
      END
C  _____________________________________________________________________
C
      SUBROUTINE TEST
      IMPLICIT DOUBLE PRECISION (A-H,O-R,T-Z), INTEGER*4 (I-N)
C
      COMMON KN(100)
C
      EQUIVALENCE (KN( 3),M     ), (KN( 4),N     )
      MAXMN=MAX0(M,N)
      RETURN
      END

> ~/install/gcc-11/usr/local/bin/gfortran TESTN.f -c -fdefault-integer-8  -fchecking
TESTN.f:11:21:

   11 |       SUBROUTINE TEST
      |                     ^
Error: invalid types in conversion to integer
integer(kind=8)
integer(kind=4)
_2 = (integer(kind=8)) M.0;
TESTN.f:11: confused by earlier errors, bailing out

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-06-19 18:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 13:03 [Bug fortran/101123] New: [11/12 Regression] Invalid code for MAX0 with -fdefault-integer-8 rguenth at gcc dot gnu.org
2021-06-18 13:04 ` [Bug fortran/101123] " rguenth at gcc dot gnu.org
2021-06-18 13:29 ` jakub at gcc dot gnu.org
2021-06-18 16:23 ` anlauf at gcc dot gnu.org
2021-06-18 16:28 ` dominiq at lps dot ens.fr
2021-06-18 16:40 ` anlauf at gcc dot gnu.org
2021-06-18 16:44 ` jakub at gcc dot gnu.org
2021-06-18 17:25 ` anlauf at gcc dot gnu.org
2021-06-18 17:34 ` cvs-commit at gcc dot gnu.org
2021-06-19 18:16 ` cvs-commit at gcc dot gnu.org
2021-06-19 18:19 ` anlauf at gcc dot gnu.org

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).