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/49562] [4.6/4.7 Regression] [OOP] assigning value to type-bound function Date: Tue, 28 Jun 2011 12:53:00 -0000 [thread overview] Message-ID: <bug-49562-4-FAldSmZCrI@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-49562-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49562 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-invalid-code |ice-on-valid-code Summary|[4.6/4.7 Regression] [OOP] |[4.6/4.7 Regression] [OOP] |ICE-on-invalid: assigning |assigning value to |value to type-bound |type-bound function |function | --- Comment #5 from janus at gcc dot gnu.org 2011-06-28 12:52:58 UTC --- Note: You can get the same ICE on *valid* code, if you give the return value of 'ice_func' the POINTER attribute (allowed by F08): module ice type::ice_type contains procedure::ice_func end type ice_type contains pure function ice_func(this) integer, pointer :: ice_func class(ice_type),intent(in)::this ice_func=1 end function ice_func subroutine ice_sub(a) class(ice_type)::a a%ice_func()=1 ! This is valid now end subroutine ice_sub end module ice Unfortunately this test case is rejected with the patch in comment #2.
next prev parent reply other threads:[~2011-06-28 12:53 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-06-28 8:26 [Bug fortran/49562] New: [OOP] ICE at invalid code: assigning value to function of polymorphic object boschmann at tp1 dot physik.uni-siegen.de 2011-06-28 9:43 ` [Bug fortran/49562] [4.6/4.7 Regression] " janus at gcc dot gnu.org 2011-06-28 11:05 ` janus at gcc dot gnu.org 2011-06-28 11:06 ` janus at gcc dot gnu.org 2011-06-28 11:19 ` janus at gcc dot gnu.org 2011-06-28 12:53 ` janus at gcc dot gnu.org [this message] 2011-06-28 12:59 ` [Bug fortran/49562] [4.6/4.7 Regression] [OOP] assigning value to type-bound function janus at gcc dot gnu.org 2011-07-02 11:09 ` janus at gcc dot gnu.org 2011-07-09 18:38 ` burnus at gcc dot gnu.org 2011-07-10 9:32 ` janus at gcc dot gnu.org 2011-07-10 11:50 ` janus at gcc dot gnu.org 2011-07-10 11:53 ` janus 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-49562-4-FAldSmZCrI@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).