Thread overview
[Issue 7514] [e2ir] Error in e2ir at dynamic array to static array cast
[Issue 7514] [e2ir] Dynamic array to fixed size array cast error message
Nov 09, 2013
Denis Shelomovskij
Nov 09, 2013
Denis Shelomovskij
Nov 17, 2013
yebblies
Nov 17, 2013
yebblies
Jan 25, 2014
yebblies
November 09, 2013
https://d.puremagic.com/issues/show_bug.cgi?id=7514


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
             Status|RESOLVED                    |REOPENED
                 CC|                            |verylonglogin.reg@gmail.com
           Platform|x86                         |All
         Resolution|DUPLICATE                   |
            Summary|Dynamic array to fixed size |[e2ir] Dynamic array to
                   |array cast error message    |fixed size array cast error
                   |                            |message
         OS/Version|Windows                     |All


--- Comment #2 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-11-09 21:30:28 MSK ---
(In reply to comment #0)
> I think the error message contains "e2ir: " by mistake, DMD 2.058:

It's a minor dmd ICE.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 09, 2013
https://d.puremagic.com/issues/show_bug.cgi?id=7514


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|diagnostic                  |
            Summary|[e2ir] Error in e2ir at     |[e2ir] Error in e2ir at
                   |dynamic array to fixed size |dynamic array to static
                   |array cast                  |array cast
           Severity|trivial                     |minor


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 17, 2013
https://d.puremagic.com/issues/show_bug.cgi?id=7514


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |11484


--- Comment #3 from yebblies <yebblies@gmail.com> 2013-11-17 15:37:34 EST ---
I put the fix in the pull in issue 11484

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 17, 2013
https://d.puremagic.com/issues/show_bug.cgi?id=7514


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |baseball.mjp@gmail.com


--- Comment #4 from yebblies <yebblies@gmail.com> 2013-11-17 15:38:07 EST ---
*** Issue 5113 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: -------
January 25, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=7514



--- Comment #5 from yebblies <yebblies@gmail.com> 2014-01-25 17:43:00 EST ---
Tricky, thanks to this:

auto str2 = cast(wchar[3])("789abc"c);
writefln("str2: ", (cast(char[])str2).length , " : ", (cast(char[])str2));
assert(cast(char[])str2 == "789abc"c);

I think we should disallow casting a string literal to a static array with a different character size.

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