OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Restrict DR 757 change to C++0x mode.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ns
/
ns18.C
1
// { dg-do assemble }
2
// Origin: Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
3
4
namespace Bname {
5
class B;
6
}
7
8
template <class T>
9
class A {
10
friend class Bname::B;
11
static const int a = 1;
12
public:
13
A() { }
14
};
15
16
namespace Bname {
17
class B {
18
int a;
19
public:
20
template<class T>
21
B(const T&):a(T::a) { }
22
};
23
}
24
25
int
26
main()
27
{
28
A<int> a;
29
Bname::B b(a);
30
}