public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17164] New: index function not working properly
@ 2004-08-24  5:51 milan at cmm dot ki dot si
  2004-08-24  9:55 ` [Bug fortran/17164] " bdavis at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: milan at cmm dot ki dot si @ 2004-08-24  5:51 UTC (permalink / raw)
  To: gcc-bugs

index seg faults in the situation like this:

index(a,b), if len(b) > len(a)

Example code:

character*5 x
x='12345'
write(*,*)index(x,'blablabl')
end

-- 
           Summary: index function not working properly
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: milan at cmm dot ki dot si
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug fortran/17164] index function not working properly
  2004-08-24  5:51 [Bug fortran/17164] New: index function not working properly milan at cmm dot ki dot si
@ 2004-08-24  9:55 ` bdavis at gcc dot gnu dot org
  2004-08-24 14:14 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2004-08-24  9:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bdavis at gcc dot gnu dot org  2004-08-24 09:55 -------
proposed patch:

http://gcc.gnu.org/ml/fortran/2004-08/msg00191.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug fortran/17164] index function not working properly
  2004-08-24  5:51 [Bug fortran/17164] New: index function not working properly milan at cmm dot ki dot si
  2004-08-24  9:55 ` [Bug fortran/17164] " bdavis at gcc dot gnu dot org
@ 2004-08-24 14:14 ` pinskia at gcc dot gnu dot org
  2004-08-25  0:14 ` [Bug libfortran/17164] " cvs-commit at gcc dot gnu dot org
  2004-08-25  0:34 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-24 14:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-24 14:14 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-24 14:14:23
               date|                            |


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


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

* [Bug libfortran/17164] index function not working properly
  2004-08-24  5:51 [Bug fortran/17164] New: index function not working properly milan at cmm dot ki dot si
  2004-08-24  9:55 ` [Bug fortran/17164] " bdavis at gcc dot gnu dot org
  2004-08-24 14:14 ` pinskia at gcc dot gnu dot org
@ 2004-08-25  0:14 ` cvs-commit at gcc dot gnu dot org
  2004-08-25  0:34 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-25  0:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-08-25 00:14 -------
Subject: Bug 17164

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bdavis@gcc.gnu.org	2004-08-25 00:14:07

Modified files:
	gcc/testsuite  : ChangeLog 
	libgfortran    : ChangeLog 
	libgfortran/intrinsics: string_intrinsics.c 
Added files:
	gcc/testsuite/gfortran.dg: pr17164.f90 

Log message:
	2004-08-24  Bud Davis  <bdavis9659@comcast.net>
	
	PR fortran/17164
	* runtime/string_intrinsics.c (string_index):check for
	substring longer than string.
	* gfortran.dg/pr17164.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4186&r2=1.4187
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pr17164.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.64&r2=1.65
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/intrinsics/string_intrinsics.c.diff?cvsroot=gcc&r1=1.3&r2=1.4



-- 


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


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

* [Bug libfortran/17164] index function not working properly
  2004-08-24  5:51 [Bug fortran/17164] New: index function not working properly milan at cmm dot ki dot si
                   ` (2 preceding siblings ...)
  2004-08-25  0:14 ` [Bug libfortran/17164] " cvs-commit at gcc dot gnu dot org
@ 2004-08-25  0:34 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-25  0:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-25 00:33 -------
Fixed.

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


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


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

end of thread, other threads:[~2004-08-25  0:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-24  5:51 [Bug fortran/17164] New: index function not working properly milan at cmm dot ki dot si
2004-08-24  9:55 ` [Bug fortran/17164] " bdavis at gcc dot gnu dot org
2004-08-24 14:14 ` pinskia at gcc dot gnu dot org
2004-08-25  0:14 ` [Bug libfortran/17164] " cvs-commit at gcc dot gnu dot org
2004-08-25  0:34 ` pinskia 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).