[Bug libstdc++/101227] Clang++ fails to instantiate std::optional if nested type has a non-static data member initializer

2021-11-22 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101227 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2021-11-22 Ever confirmed|0

[Bug libstdc++/101227] Clang++ fails to instantiate std::optional if nested type has a non-static data member initializer

2021-06-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101227 --- Comment #3 from Jonathan Wakely --- Yes. It's basically the same issue as PR 96645. Nested types and default member initializers are not compatible with standard library wrapper types. Yet another horrible corner of C++.

[Bug libstdc++/101227] Clang++ fails to instantiate std::optional if nested type has a non-static data member initializer

2021-06-27 Thread dblaikie at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101227 David Blaikie changed: What|Removed |Added CC||dblaikie at gmail dot com --- Comment

[Bug libstdc++/101227] Clang++ fails to instantiate std::optional if nested type has a non-static data member initializer

2021-06-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101227 --- Comment #1 from Andrew Pinski --- clang is failing because of "requirement 'is_constructible_v' was not satisfied [with _Tp = Bar::Foo, _Args = <>]" But it seems like it should be true. from