Commit 0f06c03
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 7cc5d67 commit 0f06c03
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
0 commit comments