PR c++/77304
* g++.dg/cpp2a/nontype-class13.C: New test.
From-SVN: r268849
+2019-02-13 Marek Polacek <polacek@redhat.com>
+
+ PR c++/77304
+ * g++.dg/cpp2a/nontype-class13.C: New test.
+
2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
PR target/89190
--- /dev/null
+// PR c++/77304
+// { dg-do compile { target c++2a } }
+
+struct S {};
+
+template < typename T > struct A
+{
+ template < S > void f () {}
+
+ static void * g ()
+ {
+ return (void *) f < a >; // { dg-error "invalid" }
+ }
+
+ static S a;
+};
+
+void * f ()
+{
+ return A < int >::g ();
+}