repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.dg
/
parse
/
funptr1.C
blob
bf63c122e8bc8e6ed549022eb17504e8d4ac8b2c
1
// PR c++/9282
2
// Origin: Thomas Richter <thor@math.tu-berlin.de>
3
// { dg-do compile }
4
5
typedef void (*fptr)();
6
7
struct A
8
{
9
template<int> static void foo() {}
10
template<fptr f> static void bar() { (*f)(); }
11
};
12
13
fptr f = A::bar< A::foo<0> >;