[Bug c++/122269] Error on constexpr structured binding using tuple protocol

tkaminsk at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 14 09:40:28 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122269

--- Comment #6 from Tomasz Kamiński <tkaminsk at gcc dot gnu.org> ---
I have now realized that following also does not work without symbolic address,
so I indeed need P2686R4.
  constexpr auto e = _IndexPack<N>();
  constexpr std::tuple_element_t<0, _IndexPack<N>>&& e1 = e.template get<0>();

I think this can be closed as duplicate of PR117784.


More information about the Gcc-bugs mailing list