[Bug libstdc++/82470] Structured bindings don't work with std::tuple if a type has a get member function

2017-10-08 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82470 --- Comment #4 from Ville Voutilainen --- Ah yes, the compiler is indeed correct, the standard suggests looking up a member function. Time to fix the spec, then. :)

[Bug libstdc++/82470] Structured bindings don't work with std::tuple if a type has a get member function

2017-10-08 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82470 --- Comment #3 from Marc Glisse --- As with all the issues caused by the EBCO in std::tuple, I believe the answer is PR 63579 (I think it can be done in a way that preserves the layout of tuple).

[Bug libstdc++/82470] Structured bindings don't work with std::tuple if a type has a get member function

2017-10-08 Thread morwenn29 at hotmail dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82470 --- Comment #2 from Morwenn --- Shouldn't it? My reading of the standard (at least from Tim Song's online version) is that the lookup for a get member function is intended. Here is the relevant excerpt from [dcl.struct.bind]: > The

[Bug libstdc++/82470] Structured bindings don't work with std::tuple if a type has a get member function

2017-10-08 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82470 Ville Voutilainen changed: What|Removed |Added CC||jason at redhat dot com,