public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/91480] Nonconforming definitions of standard library feature-test macros
       [not found] <bug-91480-4@http.gcc.gnu.org/bugzilla/>
@ 2020-04-28 22:48 ` cvs-commit at gcc dot gnu.org
  2020-04-28 22:56 ` redi at gcc dot gnu.org
  2021-02-24 16:21 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-04-28 22:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 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:d0330a03606d06dc4084e9c8734a549d22676463

commit r10-8022-gd0330a03606d06dc4084e9c8734a549d22676463
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Apr 28 23:31:04 2020 +0100

    libstdc++: Fixes for feature test macros (PR 91480)

    Remove the non-standard __cpp_lib_allocator_is_always_equal macro and
    add the missing macros for P1032R1.

            PR libstdc++/91480
            * include/bits/allocator.h (__cpp_lib_allocator_is_always_equal):
            Remove non-standard macro.
            * include/bits/stl_iterator.h (__cpp_lib_constexpr_iterator):
Define
            to indicate P1032R1 support.
            * include/bits/stl_pair.h (__cpp_lib_constexpr_utility): Likewise.
            * include/std/string_view (__cpp_lib_constexpr_string_view):
Likewise.
            * include/std/tuple (__cpp_lib_constexpr_tuple): Likewise.
            * include/std/version (__cpp_lib_allocator_is_always_equal):
Remove.
            (__cpp_lib_constexpr_iterator, __cpp_lib_constexpr_string_view)
            (__cpp_lib_constexpr_tuple, __cpp_lib_constexpr_utility): Define.
            * testsuite/20_util/function_objects/constexpr_searcher.cc: Check
            feature test macro.
            * testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc:
Likewise.
            * testsuite/21_strings/basic_string_view/operations/copy/char/
            constexpr.cc: Likewise.
            * testsuite/24_iterators/insert_iterator/constexpr.cc: Likewise.

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

* [Bug libstdc++/91480] Nonconforming definitions of standard library feature-test macros
       [not found] <bug-91480-4@http.gcc.gnu.org/bugzilla/>
  2020-04-28 22:48 ` [Bug libstdc++/91480] Nonconforming definitions of standard library feature-test macros cvs-commit at gcc dot gnu.org
@ 2020-04-28 22:56 ` redi at gcc dot gnu.org
  2021-02-24 16:21 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2020-04-28 22:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #3)
> (In reply to frankhb1989 from comment #0)
> > Also, in <bits/allocator.h>, `__cpp_lib_allocator_traits_is_always_equal` is
> > wrongly spelled as `__cpp_lib_allocator_is_always_equal`.
> 
> This is incorrect. We *also* define
> __cpp_lib_allocator_traits_is_always_equal, in the appropriate places. So we
> have an extra, non-standard macro. We don't spell the standard one wrong.
> 
> The allocator_is_always_equal spelling was present in
> http://open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4440.html#recs.cpp17
> and in
> http://open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0096r0.html#detail.
> cpp17 but gone in
> http://open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0096r1.html#recs.cpp17

I've removed __cpp_lib_allocator_is_always_equal for GCC 10.

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

* [Bug libstdc++/91480] Nonconforming definitions of standard library feature-test macros
       [not found] <bug-91480-4@http.gcc.gnu.org/bugzilla/>
  2020-04-28 22:48 ` [Bug libstdc++/91480] Nonconforming definitions of standard library feature-test macros cvs-commit at gcc dot gnu.org
  2020-04-28 22:56 ` redi at gcc dot gnu.org
@ 2021-02-24 16:21 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2021-02-24 16:21 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
There's already a bug about the int vs long definitions.

*** This bug has been marked as a duplicate of bug 87193 ***

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

end of thread, other threads:[~2021-02-24 16:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-91480-4@http.gcc.gnu.org/bugzilla/>
2020-04-28 22:48 ` [Bug libstdc++/91480] Nonconforming definitions of standard library feature-test macros cvs-commit at gcc dot gnu.org
2020-04-28 22:56 ` redi at gcc dot gnu.org
2021-02-24 16:21 ` redi 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).