* [v3 PATCH] PR libstdc++/80165
@ 2018-05-13 0:02 Ville Voutilainen
2018-05-13 12:31 ` Jonathan Wakely
0 siblings, 1 reply; 2+ messages in thread
From: Ville Voutilainen @ 2018-05-13 0:02 UTC (permalink / raw)
To: gcc-patches List, libstdc++
[-- Attachment #1: Type: text/plain, Size: 285 bytes --]
This just adds a missing test. The bug was in variant, not tuple,
so I added the test under variant. Ok for trunk (this is not going
to be backported)?
2018-05-12 Ville Voutilainen <ville.voutilainen@gmail.com>
PR libstdc++/80165
* testsuite/20_util/variant/80165.cc: New.
[-- Attachment #2: pr80165.diff --]
[-- Type: text/x-patch, Size: 601 bytes --]
diff --git a/libstdc++-v3/testsuite/20_util/variant/80165.cc b/libstdc++-v3/testsuite/20_util/variant/80165.cc
new file mode 100644
index 0000000..add976c
--- /dev/null
+++ b/libstdc++-v3/testsuite/20_util/variant/80165.cc
@@ -0,0 +1,12 @@
+// { dg-options "-std=gnu++17" }
+// { dg-do compile { target c++17 } }
+
+#include <tuple>
+#include <variant>
+
+int main() {
+ using variant_t = std::variant<short, int, long>;
+ constexpr auto variant_v = variant_t{std::in_place_index_t<0>{}, short{}};
+ constexpr auto tuple = std::make_tuple(variant_v);
+ constexpr std::tuple tuple_v{variant_v};
+}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [v3 PATCH] PR libstdc++/80165
2018-05-13 0:02 [v3 PATCH] PR libstdc++/80165 Ville Voutilainen
@ 2018-05-13 12:31 ` Jonathan Wakely
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2018-05-13 12:31 UTC (permalink / raw)
To: Ville Voutilainen; +Cc: gcc-patches List, libstdc++
On 12/05/18 20:37 +0300, Ville Voutilainen wrote:
>This just adds a missing test. The bug was in variant, not tuple,
>so I added the test under variant. Ok for trunk (this is not going
>to be backported)?
OK, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-13 0:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-13 0:02 [v3 PATCH] PR libstdc++/80165 Ville Voutilainen
2018-05-13 12:31 ` 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).