Commit 1756fbc
committed
[Clang] Stop looking for DC from dependent friend specializations
Since 346077a, we began using the primary template's lexical
DeclContext for template arguments in order to properly instantiate
a friend definition.
There is a missed peculiar case, as in a friend template is specialized
within a dependent context. In this scenario, the primary template is
not a definition, whereas the specialization is. So the primary
template's DeclContext doesn't provide any meaningful for instantiation.1 parent fcb4bda commit 1756fbc
File tree
4 files changed
+48
-6
lines changed- clang
- docs
- lib/Sema
- test/SemaTemplate
4 files changed
+48
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| 579 | + | |
| 580 | + | |
579 | 581 | | |
580 | 582 | | |
581 | 583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18740 | 18740 | | |
18741 | 18741 | | |
18742 | 18742 | | |
18743 | | - | |
| 18743 | + | |
18744 | 18744 | | |
18745 | 18745 | | |
18746 | 18746 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5751 | 5751 | | |
5752 | 5752 | | |
5753 | 5753 | | |
5754 | | - | |
5755 | | - | |
| 5754 | + | |
5756 | 5755 | | |
5757 | | - | |
5758 | | - | |
| 5756 | + | |
5759 | 5757 | | |
5760 | 5758 | | |
5761 | | - | |
| 5759 | + | |
| 5760 | + | |
| 5761 | + | |
| 5762 | + | |
| 5763 | + | |
5762 | 5764 | | |
5763 | 5765 | | |
5764 | 5766 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
0 commit comments