public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* Fwd: [PATCH,libstdc++] C++ constexpr tuple is broken.
       [not found] <01160e36-db5a-3699-e1ae-223109a2b3ad@verizon.net>
@ 2019-11-17  1:20 ` Ed Smith-Rowland via libstdc++
  2019-11-17  1:33   ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Ed Smith-Rowland via libstdc++ @ 2019-11-17  1:20 UTC (permalink / raw)
  To: libstdc++, gcc-patches, Jonathan Wakely

[-- Attachment #1: Type: text/plain, Size: 83 bytes --]

I missed a file in my recent patch for C++20 constexpr tuple. Bestrafe Mich.

Ed



[-- Attachment #2: tuple_borkage.CL --]
[-- Type: text/x-opencl-src, Size: 229 bytes --]

2019-11-16  Edward Smith-Rowland  <3dw4rd@verizon.net>

	Repair the <tuple> part of C++20 p1032 Misc constexpr bits.
	* include/bits/uses_allocator.h (__uses_alloc0::_Sink::operaror=)
	(__use_alloc(const _Alloc&)) : Constexpr.



[-- Attachment #3: tuple_borkage.patch --]
[-- Type: text/x-patch, Size: 737 bytes --]

Index: include/bits/uses_allocator.h
===================================================================
--- include/bits/uses_allocator.h	(revision 278366)
+++ include/bits/uses_allocator.h	(working copy)
@@ -72,7 +72,7 @@
 
   struct __uses_alloc0 : __uses_alloc_base
   {
-    struct _Sink { void operator=(const void*) { } } _M_a;
+    struct _Sink { void _GLIBCXX20_CONSTEXPR operator=(const void*) { } } _M_a;
   };
 
   template<typename _Alloc>
@@ -109,6 +109,7 @@
       __uses_alloc<uses_allocator<_Tp, _Alloc>::value, _Tp, _Alloc, _Args...>;
 
   template<typename _Tp, typename _Alloc, typename... _Args>
+    _GLIBCXX20_CONSTEXPR
     inline __uses_alloc_t<_Tp, _Alloc, _Args...>
     __use_alloc(const _Alloc& __a)
     {


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

* Re: Fwd: [PATCH,libstdc++] C++ constexpr tuple is broken.
  2019-11-17  1:20 ` Fwd: [PATCH,libstdc++] C++ constexpr tuple is broken Ed Smith-Rowland via libstdc++
@ 2019-11-17  1:33   ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2019-11-17  1:33 UTC (permalink / raw)
  To: Ed Smith-Rowland; +Cc: libstdc++, gcc-patches

On 16/11/19 20:19 -0500, Ed Smith-Rowland via libstdc++ wrote:
>I missed a file in my recent patch for C++20 constexpr tuple. Bestrafe Mich.
>
>Ed
>
>

OK for trunk, thanks.


>2019-11-16  Edward Smith-Rowland  <3dw4rd@verizon.net>
>
>	Repair the <tuple> part of C++20 p1032 Misc constexpr bits.
>	* include/bits/uses_allocator.h (__uses_alloc0::_Sink::operaror=)
>	(__use_alloc(const _Alloc&)) : Constexpr.
>
>

>Index: include/bits/uses_allocator.h
>===================================================================
>--- include/bits/uses_allocator.h	(revision 278366)
>+++ include/bits/uses_allocator.h	(working copy)
>@@ -72,7 +72,7 @@
> 
>   struct __uses_alloc0 : __uses_alloc_base
>   {
>-    struct _Sink { void operator=(const void*) { } } _M_a;
>+    struct _Sink { void _GLIBCXX20_CONSTEXPR operator=(const void*) { } } _M_a;
>   };
> 
>   template<typename _Alloc>
>@@ -109,6 +109,7 @@
>       __uses_alloc<uses_allocator<_Tp, _Alloc>::value, _Tp, _Alloc, _Args...>;
> 
>   template<typename _Tp, typename _Alloc, typename... _Args>
>+    _GLIBCXX20_CONSTEXPR
>     inline __uses_alloc_t<_Tp, _Alloc, _Args...>
>     __use_alloc(const _Alloc& __a)
>     {
>

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

end of thread, other threads:[~2019-11-17  1:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <01160e36-db5a-3699-e1ae-223109a2b3ad@verizon.net>
2019-11-17  1:20 ` Fwd: [PATCH,libstdc++] C++ constexpr tuple is broken Ed Smith-Rowland via libstdc++
2019-11-17  1:33   ` Jonathan Wakely

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