Bug 24740 – Can't parse static array type property when a type is valid

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-09-02T11:16:44Z
Last change time
2024-12-13T19:37:10Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Nick Treleaven
Moved to GitHub: dmd#20506 →

Comments

Comment #0 by nick — 2024-09-02T11:16:44Z
template MyTemplate(alias parameter) {} alias a = MyTemplate!(int[4].init); Error: found `.` when expecting `)` following template argument list Error: unexpected identifier `init` after `MyTemplate!(int[4])` static assert(is(int[3].tupleof[0] == int)); Error: found `.` when expecting `)` Error: found `tupleof` when expecting `)`
Comment #1 by robert.schadek — 2024-12-13T19:37:10Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20506 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB