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