2014-11-26 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59114
* g++.dg/cpp0x/auto43.C: New.
From-SVN: r218090
+2014-11-26 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/59114
+ * g++.dg/cpp0x/auto43.C: New.
+
2014-11-26 Richard Biener <rguenther@suse.de>
PR middle-end/63738
--- /dev/null
+// PR c++/59114
+// { dg-do compile { target c++11 } }
+
+template<int> struct A
+{
+ template<typename T> operator T();
+};
+
+void foo()
+{
+ A<0>().operator auto(); // { dg-error "invalid use of .auto" }
+}