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/57959] New: ICE with structure constructor with scalar allocatable components Date: Tue, 23 Jul 2013 08:03:00 -0000 [thread overview] Message-ID: <bug-57959-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57959 Bug ID: 57959 Summary: ICE with structure constructor with scalar allocatable components Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Based on the array example in PR57957, which compiles. The following: type :: type1 real, allocatable :: anum end type type1 ... = type1(5.0) fails with: 0x7b3b5d fold_convert_loc(unsigned int, tree_node*, tree_node*) ../../gcc/fold-const.c:1952 0x5fb036 gfc_trans_scalar_assign(gfc_se*, gfc_se*, gfc_typespec, bool, bool, bool) ../../gcc/fortran/trans-expr.c:6899 Full example: program main implicit none type :: type1 real, allocatable :: anum end type type1 type :: type2 type(type1) :: temp end type type2 block type(type1) :: uKnot type(type2) :: a uKnot = type1(5.0) a = type2(uKnot) end block end
next reply other threads:[~2013-07-23 8:03 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-07-23 8:03 burnus at gcc dot gnu.org [this message] 2013-08-06 8:45 ` [Bug fortran/57959] [F03] " janus at gcc dot gnu.org 2014-01-10 14:10 ` janus at gcc dot gnu.org 2015-01-18 15:35 ` paul.richard.thomas at gmail dot com 2015-01-18 16:05 ` paul.richard.thomas at gmail dot com 2015-01-18 16:09 ` paul.richard.thomas 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-57959-4@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).