public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28081]  New: Undue compile-time error for zero-sized substring
@ 2006-06-19 11:39 fxcoudert at gcc dot gnu dot org
  2006-06-19 11:52 ` [Bug fortran/28081] " fxcoudert at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-06-19 11:39 UTC (permalink / raw)
  To: gcc-bugs

The following error should not happen:

$ cat substr_3.f 
      implicit none
      character(len=10) :: s, t
      integer :: i, j

      s = "abcdefghij"
      t(:10) = s(1:)
      s(16:15) = "foo"
      if (s /= t) call abort
      end
$ gfortran substr_3.f
 In file substr_3.f:9

      s(16:15) = "foo"                                                  
       1
Error: Substring end index at (1) is out of bounds


-- 
           Summary: Undue compile-time error for zero-sized substring
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: fxcoudert at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-07-02 21:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-19 11:39 [Bug fortran/28081] New: Undue compile-time error for zero-sized substring fxcoudert at gcc dot gnu dot org
2006-06-19 11:52 ` [Bug fortran/28081] " fxcoudert at gcc dot gnu dot org
2006-06-24 18:24 ` fxcoudert at gcc dot gnu dot org
2006-07-02 21:17 ` [Bug fortran/28081] [4.1 only] " fxcoudert at gcc dot gnu dot org
2006-07-02 21:23 ` [Bug fortran/28081] " fxcoudert 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).