Bug 22433 – ITFI fails with alias declared inside template, used in function signature

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-24T02:36:54Z
Last change time
2024-12-13T19:18:49Z
Assigned to
No Owner
Creator
Nicholas Wilson
Moved to GitHub: dmd#19994 →

Comments

Comment #0 by iamthewilsonator — 2021-10-24T02:36:54Z
template foo(I) { alias Idx = int; void foo(I,Idx,int) {} } struct A {} void main() { A a; //Fails: // Error: undefined identifier `Idx`" // Error: template `onlineapp.write` cannot deduce function from argument types `!()(A, int, int)`, candidates are: // `foo(I)(I, Idx, int)` a.foo(0,0); // 1 //Passes a.foo!A(0,0); // 2 } reordering the statements 1 and 2 still results in failure.
Comment #1 by robert.schadek — 2024-12-13T19:18:49Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19994 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB