public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "vehre at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51550] ICE in gfc_get_derived_type, at fortran/trans-types.c:2401 Date: Tue, 17 Mar 2015 16:23:00 -0000 [thread overview] Message-ID: <bug-51550-4-hSPJsJvvnS@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-51550-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51550 vehre at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vehre at gcc dot gnu.org --- Comment #6 from vehre at gcc dot gnu.org --- I am working on fixing the remaining issue open to resolve this problem completely. During inspection of your code I figured, that the implementation of add_key_only () does not work. I had to change it this way: subroutine add_key_only( json_object, key ) type(json_data), target :: json_object character(len=*) :: key type(json_value), pointer :: value type(json_value), pointer :: last last => json_object%key_value if (associated (last)) then do while ( associated(last%next) ) write(*,*) 'Key found: ', last%key last => last%next enddo end if allocate( value ) allocate( character(len=len(key)) :: value%key ) value%key = key write(*,*) 'Inserting key: ', value%key, ', len: ', len(value%key) if (associated (last)) then last%next => value else json_object%key_value => value end if end subroutine add_key_only Which now works as expected.
prev parent reply other threads:[~2015-03-17 16:23 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-12-14 10:01 [Bug fortran/51550] New: " arjen.markus at deltares dot nl 2011-12-14 10:29 ` [Bug fortran/51550] " dominiq at lps dot ens.fr 2011-12-15 15:21 ` burnus at gcc dot gnu.org 2011-12-15 15:26 ` burnus at gcc dot gnu.org 2012-01-24 8:10 ` burnus at gcc dot gnu.org 2015-03-17 16:23 ` vehre at gcc dot gnu.org [this message]
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-51550-4-hSPJsJvvnS@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: linkBe 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).