public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/78173] Hard error subtracting pointers to incomplete type in SFINAE context
       [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
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-12-10 15:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78173

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |ppalka at gcc dot gnu.org
   Target Milestone|---                         |10.3
                 CC|                            |ppalka at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Looking.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/78173] Hard error subtracting pointers to incomplete type in SFINAE context
       [not found] <bug-78173-4@http.gcc.gnu.org/bugzilla/>
  2020-12-10 15:05 ` [Bug c++/78173] Hard error subtracting pointers to incomplete type in SFINAE context ppalka at gcc dot gnu.org
@ 2020-12-11 14:42 ` cvs-commit at gcc dot gnu.org
  2020-12-11 14:48 ` ppalka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-11 14:42 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/78173] Hard error subtracting pointers to incomplete type in SFINAE context
       [not found] <bug-78173-4@http.gcc.gnu.org/bugzilla/>
  2020-12-10 15:05 ` [Bug c++/78173] Hard error subtracting pointers to incomplete type in SFINAE context ppalka at gcc dot gnu.org
  2020-12-11 14:42 ` cvs-commit at gcc dot gnu.org
@ 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
  4 siblings, 0 replies; 5+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-12-11 14:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78173

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
   Target Milestone|10.3                        |11.0

--- Comment #6 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed for GCC 11

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/78173] Hard error subtracting pointers to incomplete type in SFINAE context
       [not found] <bug-78173-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-15 11:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78173

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:

https://gcc.gnu.org/g:fa452a843d26a64a5ca0fd7c17ea1bd6e1b81a69

commit r11-6074-gfa452a843d26a64a5ca0fd7c17ea1bd6e1b81a69
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Dec 15 11:40:07 2020 +0000

    libstdc++: Remove workaround for PR c++/78173

    Now that the G++ bug is fixed we no longer need to protect this partial
    specialization from complaining about subtracting void pointers.

    libstdc++-v3/ChangeLog:

            * include/bits/iterator_concepts.h (incrementable_traits<Tp>):
            Remove workaround for PR c++/78173.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/78173] Hard error subtracting pointers to incomplete type in SFINAE context
       [not found] <bug-78173-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2020-12-15 11:46 ` cvs-commit at gcc dot gnu.org
@ 2021-12-03  7:49 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-03  7:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78173

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |delrieutheo at gmail dot com

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 87282 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-03  7:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-78173-4@http.gcc.gnu.org/bugzilla/>
2020-12-10 15:05 ` [Bug c++/78173] Hard error subtracting pointers to incomplete type in SFINAE context ppalka at gcc dot gnu.org
2020-12-11 14:42 ` cvs-commit at gcc dot gnu.org
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

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).