May 13, 2013 [Issue 10075] New: type inferred const as template value parameter fails when forward-referenced | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10075 Summary: type inferred const as template value parameter fails when forward-referenced Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2013-05-13 09:26:13 PDT --- 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation