[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2023-01-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2022-11-22 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 --- Comment #9 from Jonathan Wakely --- I'm not interested in encouraging people to use it, that just makes my job harder. But if you want to use it, it exists.

[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2022-11-22 Thread joerg.richter--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 --- Comment #8 from Jörg Richter --- To be honest, I can't tell from the description that this option unlocks a libstdc++ that makes no allowance for ABI incompatibilities. If you had a libstdc++ that didn't care about the ABI, similar to boos

[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2022-11-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2022-11-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 --- Comment #7 from Jonathan Wakely --- It already has such a mode, and has done for many many years. See --enable-symvers=gnu-versioned-namespace https://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html Nobody bothers to use it, so main

[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2022-11-21 Thread joerg.richter--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 --- Comment #6 from Jörg Richter --- It's not that I'm intentionally using bind_front without further arguments. I just stumbled across it when I was developing code that could output the target of a std::function<>. As I've stumpelt upon it, I

[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2022-11-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 --- Comment #5 from Jonathan Wakely --- Complete patch: --- a/libstdc++-v3/include/std/functional +++ b/libstdc++-v3/include/std/functional @@ -995,9 +995,68 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION std::tuple<_BoundArgs...> _M_bound_args;

[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2022-11-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 --- Comment #4 from Jonathan Wakely --- (In reply to Jörg Richter from comment #0) > The resulting functor is too big to be stored inline in a std::function. Why wouldn't you just store &Foo::func in the std::function instead?

[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2022-11-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2022-11-21 Thread joerg.richter--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 --- Comment #2 from Jörg Richter --- I think it should only change the size of std::_Bind_front. This type should not be used at any ABI relevant border. But even if it is, I should be possible to just rename the type?

[Bug libstdc++/107784] QOI: sizeof( bind_front( Member-Function ) ) too big

2022-11-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107784 Andrew Pinski changed: What|Removed |Added Keywords||ABI --- Comment #1 from Andrew Pinski