This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/78939] [C++17] <tuple> interferes with structured binding from struct
- From: "gccbugbjorn at fahller dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Dec 2016 19:45:38 +0000
- Subject: [Bug libstdc++/78939] [C++17] <tuple> interferes with structured binding from struct
- Auto-submitted: auto-generated
- References: <bug-78939-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78939
--- Comment #4 from Björn Fahller <gccbugbjorn at fahller dot se> ---
It also only partially solves the problem. If the struct is made const, or the
decomposition declaration is changed to "auto const& [p] = s;", it still fails.