++
Assignee: unassigned at gcc dot gnu.org
Reporter: dev at hrookami dot icu
Target Milestone: ---
Appears in version 9 and above.
Flags: -std=c++17
Code:
#include
void testVariant()
{
struct DataWithVariant {
using Member = std::variant;
Member d
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96645
--- Comment #2 from Sergey ---
(In reply to Jonathan Wakely from comment #1)
> This is not a bug in std::variant:
>
>
> template
> struct bool_constant
> {
> static constexpr bool value = B;
> using type = bool_constant;
> };
>
> using tru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96645
--- Comment #5 from Sergey ---
(In reply to Jonathan Wakely from comment #4)
> And libc++'s std::variant is still affected by the same issue, but instead
> of the default constructor being deleted it just has the wrong exception
> specification: