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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template6.C
blob
c42426a19081a565a463f37edfcb1b5472a875ff
1
// PRMS Id: 4656
2
// Testcase for use of member pointers in template resolution
3
4
template <class T> class A {
5
public:
6
A() : a(1) {}
7
T a;
8
};
9
10
template <class T>
11
int foo (T A<int>::*p)
12
{
13
return 0;
14
}
15
int main()
16
{
17
int A<int>::*pm = &A<int>::a; // gets bogus error - failed temp resolution
18
foo (pm);
19
return 0;
20
}