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++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
anonunion1.C
blob
ea17e5d5f908e58f880dbd6f21b70d38c300e451
1
// PR c++/47303
2
// { dg-do compile }
3
4
5
struct Z
6
{
7
void foo (int);
8
};
9
10
struct F
11
{
12
typedef void (Z::*zm) (int);
13
typedef void (F::*fm) (int);
14
template <zm>
15
void bar (int)
16
{
17
union
18
{
19
Z z;
20
};
21
}
22
};
23
24
F::fm m = &F::bar <&Z::foo>;