http://d.puremagic.com/issues/show_bug.cgi?id=2679

           Summary: Spurious "warning - " messages output to console
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: and...@metalanguage.com


The following code outputs a "warning - " message during compilation:

template implicitlyConverts(S, T)
{
    enum bool implicitlyConverts = T.sizeof >= S.sizeof
        && is(typeof({S s; T t = s;}()));
}

static assert(!implicitlyConverts!(long, short));

void main()
{
}


-- 

Reply via email to