repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: Friend classes don't shadow enclosing template class paramater [PR118255]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr45071.c
blob
d1715db1b73153110d3cd6f26d895d1f3c21c0f8
1
/* { dg-do compile } */
2
/* { dg-options "-O -ftree-vrp -ftree-vectorize" } */
3
4
struct
A
5
{
6
int
i
;
7
};
8
9
struct
B
10
{
11
struct
A a
;
12
};
13
14
extern
void
f4
(
void
*);
15
16
inline
void
17
f3
(
struct
A
*
a
)
18
{
19
f4
(
a
);
20
while
(
a
->
i
);
21
}
22
23
static
inline
void
24
f2
(
struct
B
*
b
)
25
{
26
f3
(&
b
->
a
);
27
}
28
29
void
30
f1
()
31
{
32
struct
B
*
b
=
0
;
33
f2
(
b
);
34
}