[Issue 11484] [e2ir] Error in e2ir at cast to/from static array
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Nov  9 12:01:39 PST 2013
    
    
  
https://d.puremagic.com/issues/show_bug.cgi?id=11484
Maxim Fomin <maxim at maxim-fomin.ru> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice                         |
                 CC|                            |maxim at maxim-fomin.ru
--- Comment #2 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-11-09 12:01:38 PST ---
And what will exactly the code
void main()
{
    Object o; // or an array, or a pointer,...
    auto i1 = cast(int[1]) o;
}
produce? A class instance converted to a pointer converted to an integer
converted to a static integer array of 1 element? Why stop here? Why not
struct S
{
  int[1] data;
}
S s = cast(S)new Object() 
and making the exact chain above plus creating struct from static array?
-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list