Commit a8ce2144 by Paolo Carlini Committed by Paolo Carlini

re PR c++/22149 (func pointer non-type template parm invalid access control)

2019-03-08  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/22149
	* g++.dg/template/access29.C: New.

From-SVN: r269507
parent 792deebf
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> 2019-03-08 Jakub Jelinek <jakub@redhat.com>
PR c++/82075 PR c++/82075
......
// 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment