OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* g++.dg/other/first-global.C: Add -fpie for all pic targets.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
funptr1.C
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> >;