[Bug libstdc++/96645] New: std::variant default constructor

2020-08-17 Thread dev at hrookami dot icu
++ 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

[Bug c++/96645] [9/10/11 Regression] std::variant default constructor

2020-08-17 Thread dev at hrookami dot icu
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

[Bug c++/96645] [9/10/11 Regression] std::variant default constructor

2020-08-18 Thread dev at hrookami dot icu
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: