public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/112781] [13/14 regression] internal error on function call returning extension of limited interface Date: Tue, 09 Jan 2024 09:50:08 +0000 [thread overview] Message-ID: <bug-112781-4-CRLvcfgjcu@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-112781-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112781 --- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>: https://gcc.gnu.org/g:275de3505e6c5b81bb8060acc5194dac8f5732b5 commit r13-8203-g275de3505e6c5b81bb8060acc5194dac8f5732b5 Author: Eric Botcazou <ebotcazou@adacore.com> Date: Tue Jan 9 10:46:23 2024 +0100 Fix internal error on function call returning extension of limited interface This is a regression present on the mainline and 13 branch, in the form of a series of internal errors (3) on a function call returning the extension of a limited interface. This is only a partial fix for the first two assertion failures; the third one is the most problematic and will be dealt with separately. The first issue is in Instantiate_Type, where we use Base_Type in a specific case to compute the ancestor of a derived type, which will later trigger the assertion on line 16960 of sem_ch3.adb since Parent_Base and Generic_Actual are the same node. This is changed to use Etype like in other cases around. The second issue is an unprotected use of Designated_Type on type T in Analyze_Explicit_Dereference, while another use in an equivalent context is guarded by Is_Access_Type a few lines above. gcc/ada PR ada/112781 * sem_ch12.adb (Instantiate_Type): Use Etype instead of Base_Type consistently to retrieve the ancestor for a derived type. * sem_ch4.adb (Analyze_Explicit_Dereference): Test Is_Access_Type consistently before accessing Designated_Type.
next prev parent reply other threads:[~2024-01-09 9:50 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-11-30 12:27 [Bug ada/112781] New: [13?/14 regression] ICE in generic instantiation simon at pushface dot org 2023-11-30 13:57 ` [Bug ada/112781] " rguenth at gcc dot gnu.org 2023-12-04 17:24 ` [Bug ada/112781] [13/14 " ebotcazou at gcc dot gnu.org 2023-12-05 0:51 ` ebotcazou at gcc dot gnu.org 2023-12-05 11:39 ` [Bug ada/112781] [13/14 regression] internal error on function call returning extension of limited interface ebotcazou at gcc dot gnu.org 2024-01-09 9:49 ` cvs-commit at gcc dot gnu.org 2024-01-09 9:50 ` cvs-commit at gcc dot gnu.org [this message] 2024-01-09 10:07 ` cvs-commit at gcc dot gnu.org 2024-01-09 10:14 ` cvs-commit at gcc dot gnu.org 2024-01-09 10:14 ` 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-112781-4-CRLvcfgjcu@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).