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++/103455] [9/10/11/12 Regression] internal compiler error: in dependent_type_p since r9-713-gd9338471b91bbe6e1 Date: Sat, 26 Mar 2022 14:20:52 +0000 [thread overview] Message-ID: <bug-103455-4-NQlgkHJEF6@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-103455-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103455 --- Comment #10 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:04f19580e8dbdbc7366d0f5fd068aa0cecafdc9d commit r12-7830-g04f19580e8dbdbc7366d0f5fd068aa0cecafdc9d Author: Patrick Palka <ppalka@redhat.com> Date: Sat Mar 26 10:20:16 2022 -0400 c++: ICE when building builtin operator->* set [PR103455] Here when constructing the builtin operator->* candidate set according to the available conversion functions for the operand types, we end up considering a candidate with C1=T (through B's dependent conversion function) and C2=F, during which we crash from DERIVED_FROM_P because dependent_type_p sees a TEMPLATE_TYPE_PARM outside of a template context. Sidestepping the question of whether we should be considering such a dependent conversion function here in the first place, it seems futile to test DERIVED_FROM_P for anything other than an actual class type, so this patch fixes this ICE by simply guarding the DERIVED_FROM_P test with CLASS_TYPE_P instead of MAYBE_CLASS_TYPE_P. PR c++/103455 gcc/cp/ChangeLog: * call.cc (add_builtin_candidate) <case MEMBER_REF>: Test CLASS_TYPE_P instead of MAYBE_CLASS_TYPE_P. gcc/testsuite/ChangeLog: * g++.dg/overload/builtin6.C: New test.
next prev parent reply other threads:[~2022-03-26 14:20 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-28 14:26 [Bug c++/103455] New: internal compiler error: in dependent_type_p, at cp/pt.c:27057 stha09 at googlemail dot com 2021-11-28 17:50 ` [Bug c++/103455] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org 2021-11-28 17:54 ` pinskia at gcc dot gnu.org 2021-11-28 19:00 ` stha09 at googlemail dot com 2021-11-28 19:05 ` stha09 at googlemail dot com 2021-11-28 19:27 ` stha09 at googlemail dot com 2021-11-28 23:09 ` pinskia at gcc dot gnu.org 2021-11-29 8:52 ` marxin at gcc dot gnu.org 2021-11-29 9:04 ` pinskia at gcc dot gnu.org 2021-11-29 9:12 ` stha09 at googlemail dot com 2021-11-29 18:50 ` stha09 at googlemail dot com 2022-01-17 12:49 ` [Bug c++/103455] [9/10/11/12 Regression] internal compiler error: in dependent_type_p since r9-713-gd9338471b91bbe6e1 rguenth at gcc dot gnu.org 2022-03-25 17:22 ` ppalka at gcc dot gnu.org 2022-03-26 14:20 ` cvs-commit at gcc dot gnu.org [this message] 2022-03-26 14:22 ` [Bug c++/103455] [9/10/11 " ppalka at gcc dot gnu.org 2022-04-07 19:19 ` cvs-commit at gcc dot gnu.org 2022-05-09 23:33 ` [Bug c++/103455] [9/10 " cvs-commit at gcc dot gnu.org 2022-05-11 14:59 ` [Bug c++/103455] [9 " cvs-commit at gcc dot gnu.org 2022-05-11 15:06 ` 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-103455-4-NQlgkHJEF6@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).