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++/99180] [10/11 Regression] ICE with alias template and empty parameter pack Date: Sat, 10 Apr 2021 04:07:10 +0000 [thread overview] Message-ID: <bug-99180-4-xgOclatqBi@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-99180-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99180 --- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>: https://gcc.gnu.org/g:1a19d334ce493ec2ce2daeac74beef63fd67e2bc commit r11-8104-g1a19d334ce493ec2ce2daeac74beef63fd67e2bc Author: Jason Merrill <jason@redhat.com> Date: Fri Apr 9 18:02:38 2021 -0400 c++: deduction guide using alias [PR99180] alias_ctad_tweaks was expecting that all deduction guides for the class would be suitable for deduction from the alias definition; in this case, the deduction guide uses 'true' and the alias B uses 'false', so deduction fails. But that's OK, we just don't use that deduction guide. I also noticed that we were giving up on deduction entirely if substitution failed for some guide; we should only give up on that particular deduction guide. We ought to give a better diagnostic about this case when deduction fails, but that can wait. gcc/cp/ChangeLog: PR c++/99180 PR c++/93295 PR c++/93867 PR c++/99118 PR c++/96873 * pt.c (alias_ctad_tweaks): Handle failure better. gcc/testsuite/ChangeLog: PR c++/99180 PR c++/93295 PR c++/93867 PR c++/95486 * g++.dg/cpp2a/class-deduction-alias5.C: New test. * g++.dg/cpp2a/class-deduction-alias6.C: New test. * g++.dg/cpp2a/class-deduction-alias7.C: New test. * g++.dg/cpp2a/class-deduction-alias8.C: New test.
next prev parent reply other threads:[~2021-04-10 4:07 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-20 15:37 [Bug c++/99180] New: " szilardszaloki at gmail dot com 2021-02-22 9:51 ` [Bug c++/99180] " marxin at gcc dot gnu.org 2021-02-23 12:08 ` [Bug c++/99180] [10/11 Regression] " rguenth at gcc dot gnu.org 2021-02-26 12:54 ` rguenth at gcc dot gnu.org 2021-03-03 20:32 ` mpolacek at gcc dot gnu.org 2021-04-08 12:02 ` rguenth at gcc dot gnu.org 2021-04-09 21:09 ` jason at gcc dot gnu.org 2021-04-10 4:07 ` cvs-commit at gcc dot gnu.org [this message] 2021-04-10 4:08 ` [Bug c++/99180] [10 " jason at gcc dot gnu.org 2021-04-10 4:17 ` jason at gcc dot gnu.org 2021-04-14 14:57 ` ppalka at gcc dot gnu.org 2021-04-14 14:58 ` ppalka at gcc dot gnu.org 2021-05-20 21:35 ` cvs-commit at gcc dot gnu.org 2022-06-28 10:43 ` jakub at gcc dot gnu.org 2023-07-07 9:28 ` rguenth 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-99180-4-xgOclatqBi@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).