www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11976] New: Regression 2.065.b1: cannot implicitly convert expression of type ulong to int

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11976

           Summary: Regression 2.065.b1: cannot implicitly convert
                    expression of type ulong to int
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: doob me.com


--- Comment #0 from Jacob Carlborg <doob me.com> 2014-01-23 05:06:42 PST ---
This compiled in DMD 2.064.2:

enum socket_t: int
{
    init  = -1
}

void main()
{
    size_t nfdbits;
    socket_t s;
    int index = cast(uint)s % nfdbits;
}

Compiling with DMD 2.065.b1 I get this error:

Error: cannot implicitly convert expression (cast(ulong)cast(uint)s % nfdbits)
of type ulong to int.

I'm suspecting this shouldn't have compiled at all. But I just want to make
sure.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 23 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11976


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-01-23 08:11:07 PST ---
This is a bugfix of issue 9107.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 23 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11976


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|All                         |x86_64


--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2014-01-23 08:12:32 PST ---
And this is -m64 only issue.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 23 2014