public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter
       [not found] <bug-20786-10259@http.gcc.gnu.org/bugzilla/>
@ 2005-10-11 23:58 ` cvs-commit at gcc dot gnu dot org
  2005-10-12  0:31 ` cvs-commit at gcc dot gnu dot org
  2005-10-12  0:33 ` kargl at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-11 23:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from cvs-commit at gcc dot gnu dot org  2005-10-11 23:58 -------
Subject: Bug 20786

CVSROOT:        /cvs/gcc
Module name:    gcc
Changes by:     kargl@gcc.gnu.org       2005-10-11 23:58:17

Modified files:
        gcc/fortran    : ChangeLog iresolve.c 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/gfortran.dg: aint_anint_1.f90 

Log message:
        PR fortran/20786
        * iresolve.c (gfc_resolve_aint, gfc_resolve_anint ): Type conversion
        of the argument.

        gfortran.dg/aint_anint_1.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.578&r2=1.579
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/iresolve.c.diff?cvsroot=gcc&r1=1.41&r2=1.42
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6171&r2=1.6172
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/aint_anint_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1


-- 


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


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

* [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter
       [not found] <bug-20786-10259@http.gcc.gnu.org/bugzilla/>
  2005-10-11 23:58 ` [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter cvs-commit at gcc dot gnu dot org
@ 2005-10-12  0:31 ` cvs-commit at gcc dot gnu dot org
  2005-10-12  0:33 ` kargl at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-12  0:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from cvs-commit at gcc dot gnu dot org  2005-10-12 00:31 -------
Subject: Bug 20786

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-branch
Changes by:     kargl@gcc.gnu.org       2005-10-12 00:31:35

Modified files:
        gcc/fortran    : ChangeLog iresolve.c 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/gfortran.dg: aint_anint_1.f90 

Log message:
        PR fortran/20786
        *iresolve.c (gfc_resolve_aint, gfc_resolve_anint ): Type conversion
        of the argument.

        gfortran.dg/aint_anint_1.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.126&r2=1.335.2.127
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/iresolve.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.32.2.4&r2=1.32.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.446&r2=1.5084.2.447
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/aint_anint_1.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1


-- 


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


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

* [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter
       [not found] <bug-20786-10259@http.gcc.gnu.org/bugzilla/>
  2005-10-11 23:58 ` [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter cvs-commit at gcc dot gnu dot org
  2005-10-12  0:31 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-12  0:33 ` kargl at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-10-12  0:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from kargl at gcc dot gnu dot org  2005-10-12 00:32 -------
Fixed.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.3


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


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

* [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter
  2005-04-06  9:54 [Bug fortran/20786] New: " fxcoudert at gcc dot gnu dot org
  2005-04-06 15:12 ` [Bug fortran/20786] " pinskia at gcc dot gnu dot org
  2005-05-23 18:25 ` jblomqvi at cc dot hut dot fi
@ 2005-06-11 20:07 ` jblomqvi at cc dot hut dot fi
  2 siblings, 0 replies; 6+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2005-06-11 20:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jblomqvi at cc dot hut dot fi  2005-06-11 20:07 -------
Actually, ANINT also exhibits the same problem:

      implicit none
      real(4) :: r = 42.7, r2
      r2 = aint (r,kind=8)
      print *, 'aint: ', r2
      r2 = anint (r, kind=8)
      print *, 'anint: ', r2
      end

Prints out:

 aint:    0.000000
 anint:    0.000000


-- 


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


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

* [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter
  2005-04-06  9:54 [Bug fortran/20786] New: " fxcoudert at gcc dot gnu dot org
  2005-04-06 15:12 ` [Bug fortran/20786] " pinskia at gcc dot gnu dot org
@ 2005-05-23 18:25 ` jblomqvi at cc dot hut dot fi
  2005-06-11 20:07 ` jblomqvi at cc dot hut dot fi
  2 siblings, 0 replies; 6+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2005-05-23 18:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jblomqvi at cc dot hut dot fi  2005-05-23 18:22 -------
The ICE seems to have disappeared, but it still doesn't work correctly. E.g. 

      implicit none
      real(4) :: r = 42.0
      r = aint (r,kind=8)
      print *, r
      end

Prints out 0.000000

-- 


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


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

* [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter
  2005-04-06  9:54 [Bug fortran/20786] New: " fxcoudert at gcc dot gnu dot org
@ 2005-04-06 15:12 ` pinskia at gcc dot gnu dot org
  2005-05-23 18:25 ` jblomqvi at cc dot hut dot fi
  2005-06-11 20:07 ` jblomqvi at cc dot hut dot fi
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-06 15:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-06 15:11 -------
Confirmed, the problem is most likely we are missing a fold_convert somewhere converting from 
double down to float (sorry for using C types but it makes it easier sometimes).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-06 15:11:53
               date|                            |


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


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

end of thread, other threads:[~2005-10-12  0:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-20786-10259@http.gcc.gnu.org/bugzilla/>
2005-10-11 23:58 ` [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter cvs-commit at gcc dot gnu dot org
2005-10-12  0:31 ` cvs-commit at gcc dot gnu dot org
2005-10-12  0:33 ` kargl at gcc dot gnu dot org
2005-04-06  9:54 [Bug fortran/20786] New: " fxcoudert at gcc dot gnu dot org
2005-04-06 15:12 ` [Bug fortran/20786] " pinskia at gcc dot gnu dot org
2005-05-23 18:25 ` jblomqvi at cc dot hut dot fi
2005-06-11 20:07 ` jblomqvi at cc dot hut dot fi

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