Commit 16b4c18
committed
[clang] Fix constant evaluation of member pointer access to member of sibling class.
HandleMemberPointerAccess considered whether the lvalue path in a member pointer access
matched the bases of the containing class of the member, but neglected to check the same
for the containing class of the member itself, thereby ignoring access attempts to members
in direct sibling classes.
Fixes #150705.
Fixes #150709.1 parent 0954cf1 commit 16b4c18
File tree
3 files changed
+41
-0
lines changed- clang
- lib/AST
- test/SemaCXX
3 files changed
+41
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5051 | 5051 | | |
5052 | 5052 | | |
5053 | 5053 | | |
| 5054 | + | |
| 5055 | + | |
| 5056 | + | |
| 5057 | + | |
| 5058 | + | |
| 5059 | + | |
| 5060 | + | |
| 5061 | + | |
| 5062 | + | |
| 5063 | + | |
5054 | 5064 | | |
5055 | 5065 | | |
5056 | 5066 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1210 | 1210 | | |
1211 | 1211 | | |
1212 | 1212 | | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
1213 | 1231 | | |
1214 | 1232 | | |
1215 | 1233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1497 | 1497 | | |
1498 | 1498 | | |
1499 | 1499 | | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
0 commit comments