repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Waddress-2.C
blob
58594f9629ccbe9aa635e3e4e6b542b0caf6290e
1
// PR c++/64877
2
// { dg-options "-Waddress" }
3
4
template<class Derived>
5
struct S
6
{
7
void m() {
8
}
9
10
S()
11
{
12
if (&S<Derived>::Unwrap != &Derived::Unwrap)
13
m();
14
}
15
16
void Unwrap() {
17
}
18
};
19
20
struct T : public S<T>
21
{
22
};
23
24
T t;