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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template6.C
blob
2aec05c81e993c14d18d327095e707c8e182c24c
1
// { dg-do run }
2
// PRMS Id: 4656
3
// Testcase for use of member pointers in template resolution
4
5
template <class T> class A {
6
public:
7
A() : a(1) {}
8
T a;
9
};
10
11
template <class T>
12
int foo (T A<int>::*p)
13
{
14
return 0;
15
}
16
int main()
17
{
18
int A<int>::*pm = &A<int>::a; // { dg-bogus "" } failed temp resolution
19
foo (pm);
20
return 0;
21
}