www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11485] New: [e2ir] Error in e2ir at numeric/bool to class/interface cast

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

           Summary: [e2ir] Error in e2ir at numeric/bool to
                    class/interface cast
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg gmail.com> 2013-11-09
21:38:47 MSK ---
---
void main()
{
    int i;
    auto o = cast(Object) i;
}
---
main.d(4): Error: e2ir: cannot cast i of type int to type object.Object
---

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 09 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11485


Maxim Fomin <maxim maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice                         |
                 CC|                            |maxim maxim-fomin.ru


--- Comment #1 from Maxim Fomin <maxim maxim-fomin.ru> 2013-11-09 11:51:25 PST
---
First of all, the issue is likely to be resolved-invalid because idea of
conversion (even explicit) from int to class is bogus: such cast cannot produce
any meaningfull value. In D there is no boxing like in C#.

Secondly, this is not an ICE. ICE is a compiler crash and internal error
message in a sence of failed assertions. Rejects-valid is a more appropriate
tag.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 09 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11485


Denis Shelomovskij <verylonglogin.reg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice


--- Comment #2 from Denis Shelomovskij <verylonglogin.reg gmail.com> 2013-11-09
23:55:47 MSK ---
Sorry for insufficient description.
The issue is only about the ICE. And e2ir errors are ICEs.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 09 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11485


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid, pull
                 CC|                            |yebblies gmail.com


--- Comment #3 from yebblies <yebblies gmail.com> 2013-11-17 15:10:14 EST ---
https://github.com/D-Programming-Language/dmd/pull/2788

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 16 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11485


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh gmail.com


--- Comment #4 from yebblies <yebblies gmail.com> 2013-11-24 00:44:22 EST ---
*** Issue 9277 has been marked as a duplicate of this issue. ***

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



--- Comment #5 from github-bugzilla puremagic.com 2013-11-23 06:58:26 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/246e05627b84846d4c3c1136f76bf4b7b540ecb3
Fix Issue 11485 - [e2ir] Error in e2ir at numeric/bool to class/interface cast

https://github.com/D-Programming-Language/dmd/commit/3b24bdc4abc36adb0c790f04e9adb28c3bc09af9
Merge pull request #2788 from yebblies/issue11485

Issue 11485 - [e2ir] Error in e2ir at numeric/bool to class/interface cast

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


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

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


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