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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
ptrmem19.C
blob
52711c6cb688cbd75aa44b2a0156a195fa7ddc3f
1
// PR c++/40780
2
// { dg-do compile }
3
4
template <class T1, typename T2, typename T3>
5
struct A
6
{
7
typedef T2 (T1::*m) (T3);
8
A (m) {}
9
};
10
struct B;
11
struct C
12
{
13
void foo (B *);
14
};
15
typedef A <C, void, B *> D;
16
typedef void (C::*E) (B *);
17
struct F;
18
typedef void (C::*G) (F);
19
D d ((E) (G) & C::foo);