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
This commit is contained in:
parent
792deebfe4
commit
a8ce2144c1
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
22
gcc/testsuite/g++.dg/template/access29.C
Normal file
22
gcc/testsuite/g++.dg/template/access29.C
Normal file
@ -0,0 +1,22 @@
|
||||
// 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user