Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Waddress-2.C
blob: 58594f9629ccbe9aa635e3e4e6b542b0caf6290e [
file
] [
log
] [
blame
]
// PR c++/64877
// { dg-options "-Waddress" }
template
<
class
Derived
>
struct
S
{
void
m
()
{
}
S
()
{
if
(&
S
<
Derived
>::
Unwrap
!=
&
Derived
::
Unwrap
)
m
();
}
void
Unwrap
()
{
}
};
struct
T
:
public
S
<
T
>
{
};
T t
;