public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/67779] Strange ordering with strings in extended object
Date: Sun, 11 Oct 2015 09:05:00 -0000	[thread overview]
Message-ID: <bug-67779-4-LLxScbBhPu@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-67779-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67779

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The problem is not limited to strings. If I add the following lines

        array(1)%value = 2
        array(9)%value = 10
        write( string_array(1)%value, '(a,i0)' ) "String = ", 2
        write( string_array(9)%value, '(a,i0)' ) "String = ", 10

the initial values are

           2 'String = 2          '
           9 'String = 9          '
           8 'String = 8          '
           7 'String = 7          '
           6 'String = 6          '
           5 'String = 5          '
           4 'String = 4          '
           3 'String = 3          '
          10 'String = 10         '
           1 'String = 1          '

and the "sorted" ones are

           2
           1
           3
           4
           5
           6
           7
           8
          10
           9
 String = 2          
 String = 1          
 String = 10         
 String = 3          
 String = 4          
 String = 5          
 String = 6          
 String = 7          
 String = 8          
 String = 9


  parent reply	other threads:[~2015-10-11  9:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-30 10:58 [Bug fortran/67779] New: " arjen.markus895 at gmail dot com
2015-10-01 18:46 ` [Bug fortran/67779] " gerhard.steinmetz.fortran@t-online.de
2015-10-09 13:46 ` dominiq at lps dot ens.fr
2015-10-09 13:56 ` arjen.markus895 at gmail dot com
2015-10-09 16:04 ` dominiq at lps dot ens.fr
2015-10-10  8:08 ` dominiq at lps dot ens.fr
2015-10-11  9:05 ` dominiq at lps dot ens.fr [this message]
2015-10-12  9:53 ` arjen.markus895 at gmail dot com

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-67779-4-LLxScbBhPu@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).