☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
friend6.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/friend6.C
code
plain
raw
1
// PR c++/68451
2
// { dg-do compile { target c++11 } }
3
4
struct A {};
5
6
struct B
7
{
8
A a;
9
friend decltype(a);
10
};
11
12
template <typename T>
13
struct C
14
{
15
A a;
16
friend decltype(a);
17
};
18
19
int main()
20
{
21
B b;
22
C<int> c;
23
}