public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/24957]  New: scan() fails sometimesk
@ 2005-11-20 13:16 klra67 at freenet dot de
  2005-11-20 15:51 ` [Bug libfortran/24957] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: klra67 at freenet dot de @ 2005-11-20 13:16 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1042 bytes --]

gfortran scan() intrinsic yields incorrect results, see code snippet below

klaus@platon:~/src/F90/bugs> cat scanbug.f90
program scanbug
  character(len=10) :: numset='0123456789'

  print *, scan('0123456789', '9')
  print *, scan(numset, '9')
end program scanbug
klaus@platon:~/src/F90/bugs> gfortran scanbug.f90 -o scanbug
klaus@platon:~/src/F90/bugs> ./scanbug
          10
           0
klaus@platon:~/src/F90/bugs> gcc --version
gcc (GCC) 4.1.0 20050930 (experimental)
Copyright (C) 2005 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für VERKAUFBARKEIT oder FÜR SPEZIELLE ZWECKE.


-- 
           Summary: scan() fails sometimesk
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: klra67 at freenet dot de


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


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

* [Bug libfortran/24957] scan() fails sometimesk
  2005-11-20 13:16 [Bug libfortran/24957] New: scan() fails sometimesk klra67 at freenet dot de
@ 2005-11-20 15:51 ` pinskia at gcc dot gnu dot org
  2005-11-20 16:25 ` kargl at gcc dot gnu dot org
  2006-01-01 21:05 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-20 15:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-20 15:51 -------
I think this is a dup of bug 24787 but I don't know for sure as I don't have a
build of gfortran after the patch was applied.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |24787


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


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

* [Bug libfortran/24957] scan() fails sometimesk
  2005-11-20 13:16 [Bug libfortran/24957] New: scan() fails sometimesk klra67 at freenet dot de
  2005-11-20 15:51 ` [Bug libfortran/24957] " pinskia at gcc dot gnu dot org
@ 2005-11-20 16:25 ` kargl at gcc dot gnu dot org
  2006-01-01 21:05 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-11-20 16:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from kargl at gcc dot gnu dot org  2005-11-20 16:25 -------
kargl[203] cat > a.f90
program scanbug
  character(len=10) :: numset='0123456789'

  print *, scan('0123456789', '9')
  print *, scan(numset, '9')
end program scanbug
kargl[204] gfc41 -o z a.f90
kargl[205] ./z
          10
          10

The bug as fixed on 2005-11-12.  Please update to newer gfortran


-- 

kargl at gcc dot gnu dot org changed:

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


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


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

* [Bug libfortran/24957] scan() fails sometimesk
  2005-11-20 13:16 [Bug libfortran/24957] New: scan() fails sometimesk klra67 at freenet dot de
  2005-11-20 15:51 ` [Bug libfortran/24957] " pinskia at gcc dot gnu dot org
  2005-11-20 16:25 ` kargl at gcc dot gnu dot org
@ 2006-01-01 21:05 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-01 21:05 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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



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

end of thread, other threads:[~2006-01-01 21:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-20 13:16 [Bug libfortran/24957] New: scan() fails sometimesk klra67 at freenet dot de
2005-11-20 15:51 ` [Bug libfortran/24957] " pinskia at gcc dot gnu dot org
2005-11-20 16:25 ` kargl at gcc dot gnu dot org
2006-01-01 21:05 ` 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).