This repository was archived by the owner on Mar 30, 2021. It is now read-only.
Commit 643c9c2
Fix for import of friend class template with definition. (#691)
If there is a friend class template "prototype" (forward declaration)
and later a definition for it in the existing code, this existing
definition may be not found by ASTImporter because it is not linked
to the prototype (under the friend AST node). The problem is fixed by
looping over all found matching decls instead of break after the first
found one.1 parent 446c84d commit 643c9c2
2 files changed
+48
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5155 | 5155 | | |
5156 | 5156 | | |
5157 | 5157 | | |
5158 | | - | |
| 5158 | + | |
5159 | 5159 | | |
5160 | | - | |
5161 | | - | |
5162 | | - | |
| 5160 | + | |
| 5161 | + | |
| 5162 | + | |
5163 | 5163 | | |
5164 | 5164 | | |
5165 | 5165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5264 | 5264 | | |
5265 | 5265 | | |
5266 | 5266 | | |
| 5267 | + | |
| 5268 | + | |
| 5269 | + | |
| 5270 | + | |
| 5271 | + | |
| 5272 | + | |
| 5273 | + | |
| 5274 | + | |
| 5275 | + | |
| 5276 | + | |
| 5277 | + | |
| 5278 | + | |
| 5279 | + | |
| 5280 | + | |
| 5281 | + | |
| 5282 | + | |
| 5283 | + | |
| 5284 | + | |
| 5285 | + | |
| 5286 | + | |
| 5287 | + | |
| 5288 | + | |
| 5289 | + | |
| 5290 | + | |
| 5291 | + | |
| 5292 | + | |
| 5293 | + | |
| 5294 | + | |
| 5295 | + | |
| 5296 | + | |
| 5297 | + | |
| 5298 | + | |
| 5299 | + | |
| 5300 | + | |
| 5301 | + | |
| 5302 | + | |
| 5303 | + | |
| 5304 | + | |
| 5305 | + | |
| 5306 | + | |
| 5307 | + | |
| 5308 | + | |
| 5309 | + | |
| 5310 | + | |
5267 | 5311 | | |
5268 | 5312 | | |
5269 | 5313 | | |
| |||
0 commit comments