// PR c++/118513 // { dg-additional-options -fmodule-header } // { dg-module-cmi {} } namespace std { template struct tuple_size; template struct tuple_element; } struct A { int a, b; template int &get () { if (I == 0) return a; else return b; } }; template <> struct std::tuple_size { static const int value = 2; }; template struct std::tuple_element { using type = int; }; namespace { auto [x, y] = A { 42, 43 }; }