Commit b44f1b2
committed
[clang] fix merging of UsingShadowDecl
Previously, when deciding if two UsingShadowDecls where mergeable,
we would incorrectly only look for both pointing to the exact redecla
ration, whereas the correct thing is to look for declarations to the
same entity.
This problem has existed as far back as 2013, introduced in commit
fd8634a.
This problem could manifest itself as ODR check false positives
when importing modules.
Fixes: #ISSUE_TO_BE_CREATED1 parent 23a0d73 commit b44f1b2
File tree
3 files changed
+6
-5
lines changed- clang
- docs
- lib/AST
- test/Modules
3 files changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6732 | 6732 | | |
6733 | 6733 | | |
6734 | 6734 | | |
6735 | | - | |
| 6735 | + | |
6736 | 6736 | | |
6737 | 6737 | | |
6738 | 6738 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | | - | |
| 42 | + | |
0 commit comments