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.