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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend7.C
blob
a954f8990c5d3ff0a5b31ff03115af2cd7a981b3
1
// { dg-do compile }
2
3
template <typename V>
4
struct b
5
{
6
template <typename T>
7
class a
8
{
9
template <typename>
10
friend class a;
11
12
T t_;
13
14
public:
15
a() {}
16
a(a<T *> const &);
17
};
18
};
19
20
template <typename V>
21
template <typename T>
22
b<V>::a<T>::a(a<T *> const &rhs): t_(*rhs.t_)
23
{}
24
25
26
int
27
f ()
28
{
29
b<void *>::a<char *> q;
30
b<void *>::a<char> w(q);
31
32
return 0;
33
}