[Issue 10075] New: type inferred const as template value parameter fails when forward-referenced

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 13 09:26:15 PDT 2013


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 at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at 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: -------


More information about the Digitalmars-d-bugs mailing list