Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
friend6.C
blob: fce7e55383eeebedf8fc52a51b0a911a07d4bdb7 [
file
] [
log
] [
blame
]
// PR c++/68451
// { dg-do compile { target c++11 } }
struct
A
{};
struct
B
{
A a
;
friend
decltype
(
a
);
};
template
<
typename
T
>
struct
C
{
A a
;
friend
decltype
(
a
);
};
int
main
()
{
B b
;
C
<int>
c
;
}