Commit 7cc5d67
committed
fix Issue 21622 - Ambiguous template instantiation without parens crashes compiler
When a template instantiation matches multiple overloads exactly but is not called with parentheses, the compiler generated a ScopeExp that fell through sideeffect.d.
This fix detects if a ScopeExp resolves to a TemplateInstance with no matching aliasdecl or an OverloadSet, and correctly reports the ambiguity instead of crashing.1 parent 9e57074 commit 7cc5d67
1 file changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
394 | 413 | | |
395 | 414 | | |
396 | 415 | | |
| |||
0 commit comments