[Bug c++/92687] decltype of a structured binding to a tuple component is a reference type inside a template function
Christopher.Nerz at de dot bosch.com
gcc-bugzilla@gcc.gnu.org
Wed Feb 28 11:56:38 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92687
Christopher Nerz <Christopher.Nerz at de dot bosch.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Christopher.Nerz at de dot bosch.c
| |om
--- Comment #2 from Christopher Nerz <Christopher.Nerz at de dot bosch.com> ---
Same error happens for all other gcc versions I checked, ranging from 8.3 to
13.2.
Note that the problem does not arise if you replace the tuple with a struct {
int a; int b;}.
Seems strongly related: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102116
More information about the Gcc-bugs
mailing list