public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/23912] New: MOD function requires same kind arguments
@ 2005-09-16  8:57 fxcoudert at gcc dot gnu dot org
  2005-09-17  2:05 ` [Bug fortran/23912] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-09-16  8:57 UTC (permalink / raw)
  To: gcc-bugs

$ cat a.f 
      integer*8 i
      integer*4 j
      i = mod(i,j)
      end
$ g77 a.f   
$ ifort a.f 
$ pgf77 a.f 
$ gfortran a.f
 In file a.f:3

      i = mod(i,j)                                                      
               1
Error: 'p' argument of 'mod' intrinsic at (1) must be the same type and kind as 'a'


We should be able to have j folded to the same kind as i.

-- 
           Summary: MOD function requires same kind arguments
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 19292
             nThis:


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


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

* [Bug fortran/23912] MOD function requires same kind arguments
  2005-09-16  8:57 [Bug fortran/23912] New: MOD function requires same kind arguments fxcoudert at gcc dot gnu dot org
@ 2005-09-17  2:05 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-17  2:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-17 02:05 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-09-17 02:05:23
               date|                            |


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


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

* [Bug fortran/23912] MOD function requires same kind arguments
       [not found] <bug-23912-10259@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-12-02 15:50 ` fxcoudert at gcc dot gnu dot org
@ 2005-12-02 15:55 ` fxcoudert at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-12-02 15:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from fxcoudert at gcc dot gnu dot org  2005-12-02 15:55 -------
Fixed on 4.1 and mainline.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug fortran/23912] MOD function requires same kind arguments
       [not found] <bug-23912-10259@http.gcc.gnu.org/bugzilla/>
  2005-11-23 22:51 ` fxcoudert at gcc dot gnu dot org
  2005-11-27 14:01 ` fxcoudert at gcc dot gnu dot org
@ 2005-12-02 15:50 ` fxcoudert at gcc dot gnu dot org
  2005-12-02 15:55 ` fxcoudert at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-12-02 15:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from fxcoudert at gcc dot gnu dot org  2005-12-02 15:50 -------
Subject: Bug 23912

Author: fxcoudert
Date: Fri Dec  2 15:50:30 2005
New Revision: 107897

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107897
Log:
        PR fortran/23912
        * iresolve.c (gfc_resolve_dim, gfc_resolve_mod,
        gfc_resolve_modulo): When arguments have different kinds, fold
        the lower one to the largest kind.
        * check.c (gfc_check_a_p): Arguments of different kinds is not
        a hard error, but an extension.
        * simplify.c (gfc_simplify_dim, gfc_simplify_mod,
        gfc_simplify_modulo): When arguments have different kinds, fold
        the lower one to the largest kind.

Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/check.c
    branches/gcc-4_1-branch/gcc/fortran/iresolve.c
    branches/gcc-4_1-branch/gcc/fortran/simplify.c


-- 


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


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

* [Bug fortran/23912] MOD function requires same kind arguments
       [not found] <bug-23912-10259@http.gcc.gnu.org/bugzilla/>
  2005-11-23 22:51 ` fxcoudert at gcc dot gnu dot org
@ 2005-11-27 14:01 ` fxcoudert at gcc dot gnu dot org
  2005-12-02 15:50 ` fxcoudert at gcc dot gnu dot org
  2005-12-02 15:55 ` fxcoudert at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-11-27 14:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from fxcoudert at gcc dot gnu dot org  2005-11-27 14:01 -------
Subject: Bug 23912

Author: fxcoudert
Date: Sun Nov 27 14:01:36 2005
New Revision: 107566

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107566
Log:
        PR fortran/23912

        * iresolve.c (gfc_resolve_dim, gfc_resolve_mod,
        gfc_resolve_modulo): When arguments have different kinds, fold
        the lower one to the largest kind.
        * check.c (gfc_check_a_p): Arguments of different kinds is not
        a hard error, but an extension.
        * simplify.c (gfc_simplify_dim, gfc_simplify_mod,
        gfc_simplify_modulo): When arguments have different kinds, fold
        the lower one to the largest kind.

        * gfortran.dg/modulo_1.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/modulo_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/check.c
    trunk/gcc/fortran/iresolve.c
    trunk/gcc/fortran/simplify.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/23912] MOD function requires same kind arguments
       [not found] <bug-23912-10259@http.gcc.gnu.org/bugzilla/>
@ 2005-11-23 22:51 ` fxcoudert at gcc dot gnu dot org
  2005-11-27 14:01 ` fxcoudert at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-11-23 22:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2005-11-23 22:51 -------
Patch submitted for that bug. Waiting for approval.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |fxcoudert at gcc dot gnu dot
                   |dot org                     |org
                URL|                            |http://gcc.gnu.org/ml/fortra
                   |                            |n/2005-11/
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch
   Last reconfirmed|2005-09-17 02:05:23         |2005-11-23 22:51:17
               date|                            |
   Target Milestone|---                         |4.1.0


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


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

end of thread, other threads:[~2005-12-02 15:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-16  8:57 [Bug fortran/23912] New: MOD function requires same kind arguments fxcoudert at gcc dot gnu dot org
2005-09-17  2:05 ` [Bug fortran/23912] " pinskia at gcc dot gnu dot org
     [not found] <bug-23912-10259@http.gcc.gnu.org/bugzilla/>
2005-11-23 22:51 ` fxcoudert at gcc dot gnu dot org
2005-11-27 14:01 ` fxcoudert at gcc dot gnu dot org
2005-12-02 15:50 ` fxcoudert at gcc dot gnu dot org
2005-12-02 15:55 ` fxcoudert at gcc dot gnu dot 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).