Bug 10075 – type inferred const as template value parameter fails when forward-referenced

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-13T09:26:00Z
Last change time
2014-04-09T18:54:30Z
Keywords
rejects-valid
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2013-05-13T09:26:13Z
struct fd_custom(int XET) { int[XET] fd_array; } fd_custom!(FD_SETSZ) fdxxx; const FD_SETSZ = 4; ---- bug.d(6): Error: fd_custom!(4) had previous errors It's not running semantic() on the forward-referenced variable before attempting to use its value.
Comment #1 by 2krnk — 2014-04-09T18:54:30Z
issue 12553 covers a more general description of this problem *** This issue has been marked as a duplicate of issue 12553 ***