2014-05-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60054
* g++.dg/cpp1y/pr60054.C: New.
From-SVN: r210323
2014-05-12 Paolo Carlini <paolo.carlini@oracle.com>
+ PR c++/60054
+ * g++.dg/cpp1y/pr60054.C: New.
+
+2014-05-12 Paolo Carlini <paolo.carlini@oracle.com>
+
PR c++/51199
* g++.dg/template/pr51199.C: New.
--- /dev/null
+// PR c++/60054
+// { dg-do compile { target c++1y } }
+
+template<typename T> T fooA(T);
+template<typename T> decltype(T{}) fooB(T);
+
+void bar()
+{
+ fooA((auto*)0); // { dg-error "invalid use" }
+ fooB((auto*)0); // { dg-error "invalid use" }
+}