public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56136] [OOP] ICE on lhs-reallocation of an object with overloaded (elemental) assignment operator Date: Tue, 29 Jan 2013 08:39:00 -0000 [thread overview] Message-ID: <bug-56136-4-peycKJqe6o@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-56136-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56136 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |ice-on-valid-code Last reconfirmed| |2013-01-29 CC| |janus at gcc dot gnu.org Ever Confirmed|0 |1 Summary|Compiler fails when code |[OOP] ICE on |contains lhs-reallocation |lhs-reallocation of an |of an object with |object with overloaded |overloaded (elemental) |(elemental) assignment |Assignment operator |operator --- Comment #1 from janus at gcc dot gnu.org 2013-01-29 08:38:36 UTC --- Confirmed with 4.7 and trunk. 4.6 yields: A = A(1:50) 1 Error: Non-scalar base object at (1) currently not implemented This slightly different variant also ICEs with 4.6: MODULE A_TEST_M TYPE :: A_TYPE END TYPE INTERFACE ASSIGNMENT (=) MODULE PROCEDURE ASGN_A END INTERFACE CONTAINS ELEMENTAL SUBROUTINE ASGN_A (A, B) CLASS (A_TYPE), INTENT (INOUT) :: A CLASS (A_TYPE), INTENT (IN) :: B END SUBROUTINE END MODULE A_TEST_M PROGRAM ASGN_REALLOC_TEST USE A_TEST_M TYPE (A_TYPE), ALLOCATABLE :: A(:) ALLOCATE (A(100)) A = A(1:50) END PROGRAM
next prev parent reply other threads:[~2013-01-29 8:39 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-29 3:12 [Bug fortran/56136] New: Compiler fails when code contains lhs-reallocation of an object with overloaded (elemental) Assignment operator alipasha.celeris at gmail dot com 2013-01-29 8:39 ` janus at gcc dot gnu.org [this message] 2013-06-14 15:17 ` [Bug fortran/56136] [OOP] ICE on lhs-reallocation of an object with overloaded (elemental) assignment operator dominiq at lps dot ens.fr 2013-06-15 10:59 ` mikael at gcc dot gnu.org 2013-06-15 21:25 ` mikael at gcc dot gnu.org 2013-06-15 21:28 ` mikael 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-56136-4-peycKJqe6o@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).