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 c++/101886] [11/12/13 Regression][concepts TS] ICE with auto as template argument since r11-7011-g6e0a231a4aa2407b Date: Mon, 19 Dec 2022 20:39:44 +0000 [thread overview] Message-ID: <bug-101886-4-6Op1AdS3qk@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-101886-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101886 --- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>: https://gcc.gnu.org/g:a7c8036b26082d8da001e05596777c5f911590e1 commit r13-4799-ga7c8036b26082d8da001e05596777c5f911590e1 Author: Patrick Palka <ppalka@redhat.com> Date: Mon Dec 19 14:59:43 2022 -0500 c++: ICE with concepts TS multiple auto deduction [PR101886] In extract_autos_r, we need to recompute TYPE_CANONICAL for the template type parameter after adjusting its index, otherwise we end up with a comptypes ICE for the below testcase. Note that such in-place type adjustment isn't generally safe to do since the type could be the TYPE_CANONICAL of another (unadjusted) type, but in this case the canonical auto (of some level and 0 index) is the first auto (of that level) that's created, and so any auto that we do end up adjusting can't be the canonical one. PR c++/101886 gcc/cp/ChangeLog: * pt.cc (extract_autos_r): Recompute TYPE_CANONICAL after adjusting the template type parameter's index. Simplify by using TEMPLATE_TYPE_IDX. Add some sanity checks. gcc/testsuite/ChangeLog: * g++.dg/concepts/auto5.C: New test.
next prev parent reply other threads:[~2022-12-19 20:39 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-12 17:12 [Bug c++/101886] New: [11/12 Regression][concepts] ICE with auto as template parameter reichelt at gcc dot gnu.org 2021-08-12 20:28 ` [Bug c++/101886] " pinskia at gcc dot gnu.org 2021-08-13 7:49 ` [Bug c++/101886] [11/12 Regression][concepts] ICE with auto as template parameter since r11-7011-g6e0a231a4aa2407b marxin at gcc dot gnu.org 2022-01-17 13:54 ` rguenth at gcc dot gnu.org 2022-03-27 17:53 ` [Bug c++/101886] [11/12 Regression][concepts] ICE with auto as template argument " jason at gcc dot gnu.org 2022-04-21 7:50 ` [Bug c++/101886] [11/12 Regression][concepts TS] " rguenth at gcc dot gnu.org 2022-12-19 20:39 ` cvs-commit at gcc dot gnu.org [this message] 2022-12-19 20:40 ` ppalka at gcc dot gnu.org 2022-12-20 22:02 ` cvs-commit at gcc dot gnu.org 2023-02-25 16:34 ` ppalka 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-101886-4-6Op1AdS3qk@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).