Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
defarg15.C
blob: fea3deee71c966442ab8200422370f6a011e7855 [
file
] [
log
] [
blame
]
// PR c++/54198
template
<
typename
T
>
void
refIfNotNull
(
T
*
p1
)
{
p1
->
ref
;
}
template
<
typename
T
>
struct
A
{
A
(
T
*
p1
)
{
refIfNotNull
(
p1
);
}
};
class
B
;
class
C
{
void
getParent
(
A
<
B
>
=
0
);
};