public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/30415]  New: MINLOC, MAXLOC missing for integer kinds 1 and 2
@ 2007-01-09  8:34 anlauf at gmx dot de
  2007-01-09 20:46 ` [Bug libfortran/30415] " tkoenig at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: anlauf at gmx dot de @ 2007-01-09  8:34 UTC (permalink / raw)
  To: gcc-bugs

Hi,

the following code does not link:

program gfcbug55
  integer(kind=1) :: i1(4) = 1
  integer(kind=2) :: i2(4) = 1
  print *, minloc(i1), minloc(i2)       ! These are missing
  print *, maxloc(i1), maxloc(i2)       ! from libgfortran
end program gfcbug55

Cheers,
-ha


-- 
           Summary: MINLOC, MAXLOC missing for integer kinds 1 and 2
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at gmx dot de
  GCC host triplet: i686-pc-linux-gnu


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


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

* [Bug libfortran/30415] MINLOC, MAXLOC missing for integer kinds 1 and 2
  2007-01-09  8:34 [Bug libfortran/30415] New: MINLOC, MAXLOC missing for integer kinds 1 and 2 anlauf at gmx dot de
@ 2007-01-09 20:46 ` tkoenig at gcc dot gnu dot org
  2007-01-09 21:30 ` tkoenig at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-01-09 20:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tkoenig at gcc dot gnu dot org  2007-01-09 20:44 -------
Yep.

I'll have a look.


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tkoenig at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-01-09 20:44:38
               date|                            |


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


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

* [Bug libfortran/30415] MINLOC, MAXLOC missing for integer kinds 1 and 2
  2007-01-09  8:34 [Bug libfortran/30415] New: MINLOC, MAXLOC missing for integer kinds 1 and 2 anlauf at gmx dot de
  2007-01-09 20:46 ` [Bug libfortran/30415] " tkoenig at gcc dot gnu dot org
@ 2007-01-09 21:30 ` tkoenig at gcc dot gnu dot org
  2007-01-11 20:33 ` tkoenig at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-01-09 21:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tkoenig at gcc dot gnu dot org  2007-01-09 21:30 -------
Created an attachment (id=12873)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12873&action=view)
patch (currently regtesting)

This fixes the test case.  It's currently in regression test.

Thomas


-- 


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


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

* [Bug libfortran/30415] MINLOC, MAXLOC missing for integer kinds 1 and 2
  2007-01-09  8:34 [Bug libfortran/30415] New: MINLOC, MAXLOC missing for integer kinds 1 and 2 anlauf at gmx dot de
  2007-01-09 20:46 ` [Bug libfortran/30415] " tkoenig at gcc dot gnu dot org
  2007-01-09 21:30 ` tkoenig at gcc dot gnu dot org
@ 2007-01-11 20:33 ` tkoenig at gcc dot gnu dot org
  2007-01-18 21:57 ` tkoenig at gcc dot gnu dot org
  2007-01-18 21:58 ` tkoenig at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-01-11 20:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tkoenig at gcc dot gnu dot org  2007-01-11 20:32 -------
Subject: Bug 30415

Author: tkoenig
Date: Thu Jan 11 20:32:42 2007
New Revision: 120685

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120685
Log:
2007-01-11  Thomas Koenig  <Thomas.Koenig@online.de>

        PR libfortran/30415
        * iresolve.c (gfc_resolve_maxloc):  If the rank
        of the return array is nonzero and we process an
        integer array smaller than default kind, coerce
        the array to default integer.
        * iresolve.c (gfc_resolve_minloc):  Likewise.

2007-01-11  Thomas Koenig  <Thomas.Koenig@online.de>

        PR libfortran/30415
        * minmaxloc_integer_kinds_1.f90:  New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/minmaxloc_integer_kinds_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/iresolve.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug libfortran/30415] MINLOC, MAXLOC missing for integer kinds 1 and 2
  2007-01-09  8:34 [Bug libfortran/30415] New: MINLOC, MAXLOC missing for integer kinds 1 and 2 anlauf at gmx dot de
                   ` (2 preceding siblings ...)
  2007-01-11 20:33 ` tkoenig at gcc dot gnu dot org
@ 2007-01-18 21:57 ` tkoenig at gcc dot gnu dot org
  2007-01-18 21:58 ` tkoenig at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-01-18 21:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tkoenig at gcc dot gnu dot org  2007-01-18 21:57 -------
Subject: Bug 30415

Author: tkoenig
Date: Thu Jan 18 21:56:53 2007
New Revision: 120932

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120932
Log:
2007-01-18  Thomas Koenig  <Thomas.Koenig@online.de>

        Backport from trunk
        PR libfortran/30415
        * iresolve.c (gfc_resolve_maxloc):  If the rank
        of the return array is nonzero and we process an
        integer array smaller than default kind, coerce
        the array to default integer.
        * iresolve.c (gfc_resolve_minloc):  Likewise.

2007-01-18  Thomas Koenig  <Thomas.Koenig@online.de>

        Backport from trunk
        PR libfortran/30415
        * minmaxloc_integer_kinds_1.f90:  New test.


Added:
   
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/minmaxloc_integer_kinds_1.f90
Modified:
    branches/gcc-4_2-branch/gcc/fortran/ChangeLog
    branches/gcc-4_2-branch/gcc/fortran/iresolve.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug libfortran/30415] MINLOC, MAXLOC missing for integer kinds 1 and 2
  2007-01-09  8:34 [Bug libfortran/30415] New: MINLOC, MAXLOC missing for integer kinds 1 and 2 anlauf at gmx dot de
                   ` (3 preceding siblings ...)
  2007-01-18 21:57 ` tkoenig at gcc dot gnu dot org
@ 2007-01-18 21:58 ` tkoenig at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-01-18 21:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from tkoenig at gcc dot gnu dot org  2007-01-18 21:58 -------
Fixed on trunk and 4.2.  Closing.


-- 

tkoenig at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-01-18 21:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-09  8:34 [Bug libfortran/30415] New: MINLOC, MAXLOC missing for integer kinds 1 and 2 anlauf at gmx dot de
2007-01-09 20:46 ` [Bug libfortran/30415] " tkoenig at gcc dot gnu dot org
2007-01-09 21:30 ` tkoenig at gcc dot gnu dot org
2007-01-11 20:33 ` tkoenig at gcc dot gnu dot org
2007-01-18 21:57 ` tkoenig at gcc dot gnu dot org
2007-01-18 21:58 ` tkoenig 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).