public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "demoonlit at panathenaia dot halfmoon.jp" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/70867] [9/10/11/12 regression] access discriminant in return aggregate wrongly detected as dangling Date: Thu, 10 Jun 2021 17:25:55 +0000 [thread overview] Message-ID: <bug-70867-4-g3ArvenJWZ@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-70867-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70867 --- Comment #13 from yuta tomino <demoonlit at panathenaia dot halfmoon.jp> --- Sorry, perhaps my example is illegal in Ada 2012. "aliased" is required to return a reference of a part of the parameter. Randy explained the change in https://groups.google.com/g/comp.lang.ada/c/7dw7Oqi8lIk/m/5NUBhFN8DQAJ . (I wonder if it was legal before Ada 2005?? Because aliased parameter is added in Ada 2012 and the relevant text has been changed by AI05-0234-1.) I think Nicolas's example is always legal. Thanks.
next prev parent reply other threads:[~2021-06-10 17:25 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-70867-4@http.gcc.gnu.org/bugzilla/> 2021-05-14 9:48 ` jakub at gcc dot gnu.org 2021-06-01 8:07 ` rguenth at gcc dot gnu.org 2021-06-10 17:25 ` demoonlit at panathenaia dot halfmoon.jp [this message] 2021-07-31 20:11 ` simon at pushface dot org 2021-09-10 11:17 ` ebotcazou 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-70867-4-g3ArvenJWZ@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).