Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;
}