// { dg-do compile { target c++17 } } template struct Array {}; template struct Foo { static constexpr int size() { return size_; } template Foo(U, Array) {} }; template Foo(U, Array) -> Foo; int main() { Array arr{}; Foo foo{2.0, arr}; }