This test got fixed by r10-1976-gdaaa6fcc70ffe66bd56f5819ad4ee78fecd54bb6
so let's add it to the testsuite.
PR c++/88092
* g++.dg/cpp2a/nontype-class31.C: New test.
+2020-01-29 Marek Polacek <polacek@redhat.com>
+
+ PR c++/88092
+ * g++.dg/cpp2a/nontype-class31.C: New test.
+
2020-01-29 Jeff Law <law@redhat.com
PR tree-optimization/89689
--- /dev/null
+// PR c++/88092
+// { dg-do compile { target c++2a } }
+
+template<typename T>
+struct S {
+ constexpr S(...) { }
+};
+
+template <typename T> S(T) -> S<T>;
+
+template <S s> struct foo { };
+
+template <S s>
+void fn ()
+{
+ auto t = s;
+ foo<t> f1;
+ foo<s> f2;
+}