public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: fortran/7388: Incorrect output with 0 based array of characters.
@ 2002-09-28 10:46 Hans-Peter Nilsson
  0 siblings, 0 replies; 4+ messages in thread
From: Hans-Peter Nilsson @ 2002-09-28 10:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR fortran/7388; it has been noted by GNATS.

From: Hans-Peter Nilsson <hp@bitrange.com>
To: Moene <toon@moene.indiv.nluug.nl>,  <allan@rolls-royce.ca>, 
     <gcc-bugs@gcc.gnu.org>,  <gcc-prs@gcc.gnu.org>, 
     <george@geo.titech.ac.jp>,  <nobody@gcc.gnu.org>, 
     <gcc-gnats@gcc.gnu.org>
Cc:  
Subject: Re: fortran/7388: Incorrect output with 0 based array of characters.
Date: Sat, 28 Sep 2002 13:40:11 -0400 (EDT)

 For the record, g77.dg/7388.f fails on mmix-knuth-mmixware too.
 
 


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

* Re: fortran/7388: Incorrect output with 0 based array of characters.
@ 2002-10-26  9:01 toon
  0 siblings, 0 replies; 4+ messages in thread
From: toon @ 2002-10-26  9:01 UTC (permalink / raw)
  To: Moene, Toon, allan, gcc-bugs, gcc-prs, george, nobody, toon

Synopsis: Incorrect output with 0 based array of characters.

Responsible-Changed-From-To: unassigned->toon
Responsible-Changed-By: toon
Responsible-Changed-When: Sat Oct 26 09:01:25 2002
Responsible-Changed-Why:
    Fortran Maintainer.
State-Changed-From-To: analyzed->closed
State-Changed-By: toon
State-Changed-When: Sat Oct 26 09:01:25 2002
State-Changed-Why:
    Fixed in 3.2.1 and 3.3.
    
    Probably by Nathan Sidwell, fixing PR c++/7209:
    
    * fold_const.c (fold_binary_op_with_conditional_arg):
      Alwasy build compound_expr if we used save_expr.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7388


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

* Re: fortran/7388: Incorrect output with 0 based array of characters.
@ 2002-09-28  8:29 toon
  0 siblings, 0 replies; 4+ messages in thread
From: toon @ 2002-09-28  8:29 UTC (permalink / raw)
  To: Moene, Toon, allan, gcc-bugs, gcc-prs, george, nobody

Synopsis: Incorrect output with 0 based array of characters.

State-Changed-From-To: open->analyzed
State-Changed-By: toon
State-Changed-When: Sat Sep 28 08:29:06 2002
State-Changed-Why:
    Analysed, test case added to g77.dg directory as 7388.f.
    
    Might not be a frontend problem, as it doesn't fail on all
    targets (specifically, sparc64).

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7388


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

* fortran/7388: Incorrect output with 0 based array of characters.
@ 2002-07-23 13:36 Toon, Moene
  0 siblings, 0 replies; 4+ messages in thread
From: Toon, Moene @ 2002-07-23 13:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: allan, george


>Number:         7388
>Category:       fortran
>Synopsis:       Incorrect output with 0 based array of characters.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 23 13:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Toon Moene <toon@moene.indiv.nluug.nl
>Release:        3.1
>Organization:
>Environment:
Linux, probably unimportant
>Description:
This code:

      character*256 buff(0:10)
      character*80 strings(10)
      integer i,m1,m2

      i = 1
      m1 = 1
      m2 = 7
      buff(i) = 'tcase0a'
      strings(i) = buff(i)(m1:m2)
      write(*,*)buff(i)
      write(*,*)buff(i)(m1:m2)
      write(*,*)strings(i)

      stop
      end

should print "tcase0a" three times, the first time with 248
blanks attached.

However, with 'g77 [other options] -fbounds-check' it
doesn't.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-10-26 16:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-28 10:46 fortran/7388: Incorrect output with 0 based array of characters Hans-Peter Nilsson
  -- strict thread matches above, loose matches on Subject: below --
2002-10-26  9:01 toon
2002-09-28  8:29 toon
2002-07-23 13:36 Toon, Moene

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