https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95328
--- Comment #1 from Stefaan De Roeck <stefaan.deroeck at gmail dot com> --- During further development, I nevertheless did find a shorter snippet to reproduce the issue: template <typename T> struct Data { int a, b; }; template <class Anything> void func() { auto [a, b] = Data<int>(); } int main() { func<int>(); } If there were a way to disable this specific warning(/error), that would help too...