Commit 0be9592
authored
[clang] CTAD: Respect requires-clause of the original function template for the synthesized deduction guide (#84913)
We ignored the require-clause of the original template when building the deduction guide for type-alias CTAD, this resulted in accepting code which should be rejected (see the test case). This patch fixes it, part of #84492.1 parent 1c792d2 commit 0be9592
File tree
2 files changed
+31
-5
lines changed- clang
- lib/Sema
- test/SemaCXX
2 files changed
+31
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2906 | 2906 | | |
2907 | 2907 | | |
2908 | 2908 | | |
2909 | | - | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
2910 | 2921 | | |
2911 | | - | |
2912 | | - | |
2913 | | - | |
| 2922 | + | |
2914 | 2923 | | |
2915 | 2924 | | |
2916 | 2925 | | |
2917 | 2926 | | |
2918 | 2927 | | |
2919 | 2928 | | |
2920 | | - | |
| 2929 | + | |
2921 | 2930 | | |
2922 | 2931 | | |
2923 | 2932 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
0 commit comments