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
PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype24.C
blob
57fbe430e1c9c165b62b0117d7d2b44c5eb2d7d1
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;