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
PR c++/54858
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype24.C
1
// PR c++/49808
2
3
template <class X, X g>
4
struct A
5
{
6
A() { float r = g(0); }
7
};
8
9
struct f_t
10
{
11
float operator() (float) const { return 1; }
12
};
13
14
f_t f;
15
16
A<f_t&, f> x;