2019-03-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/22149
* g++.dg/template/access29.C: New.
From-SVN: r269507
+2019-03-08 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/22149
+ * g++.dg/template/access29.C: New.
+
2019-03-08 Jakub Jelinek <jakub@redhat.com>
PR c++/82075
--- /dev/null
+// PR c++/22149
+
+template < void (*FOOBAR) () >
+class foo {
+public:
+ foo () { (*FOOBAR) (); }
+};
+
+class bar {
+public:
+ bar () { foo < bar::foobar > tmp; }
+private:
+ static void foobar ()
+ {
+ }
+};
+
+int
+main ()
+{
+ bar b;
+}