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++/78173] Hard error subtracting pointers to incomplete type in SFINAE context Date: Fri, 11 Dec 2020 14:42:32 +0000 [thread overview] Message-ID: <bug-78173-4-thEEzmSRly@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-78173-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78173 --- Comment #5 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:958d42abdf1a1936d290aab126cebd6bb4a52361 commit r11-5936-g958d42abdf1a1936d290aab126cebd6bb4a52361 Author: Patrick Palka <ppalka@redhat.com> Date: Fri Dec 11 09:40:58 2020 -0500 c++: missing SFINAE with pointer subtraction [PR78173] This fixes a missed SFINAE when subtracting pointers to an incomplete type. gcc/cp/ChangeLog: PR c++/78173 * typeck.c (pointer_diff): Use complete_type_or_maybe_complain instead of complete_type_or_else. gcc/testsuite/ChangeLog: PR c++/78173 * g++.dg/cpp2a/concepts-pr78173.C: New test.
next prev parent reply other threads:[~2020-12-11 14:42 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-78173-4@http.gcc.gnu.org/bugzilla/> 2020-12-10 15:05 ` ppalka at gcc dot gnu.org 2020-12-11 14:42 ` cvs-commit at gcc dot gnu.org [this message] 2020-12-11 14:48 ` ppalka at gcc dot gnu.org 2020-12-15 11:46 ` cvs-commit at gcc dot gnu.org 2021-12-03 7:49 ` pinskia 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-78173-4-thEEzmSRly@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).