www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9366] New: Appending a value cast to void to a void[] crashes DMD.

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

           Summary: Appending a value cast to void to a void[] crashes
                    DMD.
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: blood.of.life gmail.com


--- Comment #0 from Bernard Helyer <blood.of.life gmail.com> 2013-01-21
20:55:14 PST ---
void main()
{
    void[] a;
    a = a ~ cast(void) 42;
}

ICE on invalid, obviously.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 21 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9366


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
                 CC|                            |yebblies gmail.com
           Platform|x86                         |All
            Version|unspecified                 |D1 & D2
         AssignedTo|nobody puremagic.com        |yebblies gmail.com
         OS/Version|Windows                     |All
           Severity|minor                       |critical


--- Comment #1 from yebblies <yebblies gmail.com> 2013-01-22 17:09:08 EST ---
https://github.com/D-Programming-Language/dmd/pull/1532

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 21 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9366



--- Comment #2 from github-bugzilla puremagic.com 2013-01-22 01:12:06 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/8e8dfac30bbda7c38f9048e20e673ce80e9c9a62
Fix Issue 9366 - Appending a value cast to void to a void[] crashes DMD

https://github.com/D-Programming-Language/dmd/commit/b42635616d31c71555cc6a68bdc06650060c9b58
Merge pull request #1532 from yebblies/issue9366

Fix Issue 9366 - Appending a value cast to void to a void[] crashes DMD

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 22 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9366


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1 & D2                     |D1
            Summary|Appending a value cast to   |(D1 only) Appending a value
                   |void to a void[] crashes    |cast to void to a void[]
                   |DMD.                        |crashes DMD.


--- Comment #3 from yebblies <yebblies gmail.com> 2013-01-22 22:01:59 EST ---
Fixed for D2

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