comparison gcc/testsuite/g++.dg/template/access29.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 // PR c++/22149
2
3 template < void (*FOOBAR) () >
4 class foo {
5 public:
6 foo () { (*FOOBAR) (); }
7 };
8
9 class bar {
10 public:
11 bar () { foo < bar::foobar > tmp; }
12 private:
13 static void foobar ()
14 {
15 }
16 };
17
18 int
19 main ()
20 {
21 bar b;
22 }