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
* config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr69379.C
blob
249ad00f2d6c6efdcb71d9f3002676d02de49ad6
1
// PR c++/69379
2
// { dg-do compile }
3
// { dg-options "-Wformat" }
4
5
typedef int T;
6
class A {
7
public:
8
template <class D> A(const char *, D);
9
template <class Fn, class A1, class A2>
10
void m_fn1(const char *, Fn, A1 const &, A2);
11
};
12
struct Dict {
13
void m_fn2();
14
};
15
void fn1() {
16
A a("", "");
17
typedef void *Get;
18
typedef void (Dict::*d)(T);
19
a.m_fn1("", Get(), d(&Dict::m_fn2), "");
20
}