public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/55618] [4.6/4.7/4.8 Regression] Failures with ISO_Varying_String test suite
Date: Mon, 10 Dec 2012 09:46:00 -0000	[thread overview]
Message-ID: <bug-55618-4-FxdutYBG9d@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55618-4@http.gcc.gnu.org/bugzilla/>


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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-12-10 09:45:45 UTC ---
Reduced test case:

module m
  implicit none
  type t
    character :: str(11)
  end type t

  interface char
    module procedure char_auto
  end interface char

contains
  pure function char_auto (string) result (char_string)
    type(t), intent(in) :: string
    character(LEN=size(string%str)) :: char_string
    integer :: i_char
    forall(i_char = 1:size(string%str))
       char_string(i_char:i_char) = string%str(i_char)
    end forall
  end function char_auto

  elemental subroutine split_CH (string, set)
    type(t), intent(inout)         :: string
    character(LEN=*), intent(in)                :: set
    integer :: i
    do i = 1, min(len(set),size(string%str))
      string%str(i) = set(i:i)
    end do
  end subroutine split_CH
end module m

use m
type(t) :: mdt, mdt2(2),setdt
mdt%str = ['H', 'e', 'l', 'l', 'o', ' ', 'W','o', 'r', 'l', 'd']
mdt2 = [ mdt, mdt ]
setdt%str = ['F', 'o', 'r', 't', 'r', 'a', 'n','R', 'u', 'l', 'z']

call split_CH(mdt2, char(setdt))
print '(11a)', mdt2(1)%str
print '(11a)', mdt2(2)%str
if (any (mdt2(1)%str /= setdt%str)) call abort ()
if (any (mdt2(2)%str /= setdt%str)) call abort ()
end


  parent reply	other threads:[~2012-12-10  9:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-07 19:14 [Bug fortran/55618] New: " burnus at gcc dot gnu.org
2012-12-07 21:14 ` [Bug fortran/55618] " burnus at gcc dot gnu.org
2012-12-10  9:46 ` burnus at gcc dot gnu.org [this message]
2012-12-10 11:43 ` burnus at gcc dot gnu.org
2013-01-06 18:48 ` pault at gcc dot gnu.org
2013-01-06 21:12 ` pault at gcc dot gnu.org
2013-01-07 23:42 ` dominiq at lps dot ens.fr
2013-01-08  6:14 ` pault at gcc dot gnu.org
2013-01-13  7:51 ` [Bug fortran/55618] [4.6/4.7 " pault at gcc dot gnu.org
2013-01-14 17:59 ` [Bug fortran/55618] [4.6 " pault at gcc dot gnu.org
2013-01-14 18:45 ` [Bug fortran/55618] [4.6, 4.7, 4.8 " pault at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-55618-4-FxdutYBG9d@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).