Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend30.C
blob: 055fc8d89ec74b1a8d060893ca57031bdc9d799c [
file
] [
log
] [
blame
]
// PR c++/14930
template
<
typename
T
>
class
Point
;
template
<>
class
Point
<double>
{
friend
class
Plane
;
double
v
;
};
struct
Plane
{
double
get
(
const
Point
<double>
&
p
);
};
double
Plane
::
get
(
const
Point
<double>
&
p
)
{
return
p
.
v
;
}