www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10105] New: ICE when converting string literal to static char array in enum initializer

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

           Summary: ICE when converting string literal to static char
                    array in enum initializer
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu


--- Comment #0 from Martin Nowak <code dawg.eu> 2013-05-17 06:46:19 PDT ---
cat > bug.d << CODE
enum Foo : char[1]
{
    a = "a",
}
CODE

dmd -c bug

----

The same declaration outside of an enum works as expected.
char[1] a = "a";

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


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |henning still-hidden.de


--- Comment #1 from Henning Pohl <henning still-hidden.de> 2013-05-26 09:57:01
PDT ---
https://github.com/D-Programming-Language/dmd/pull/2079/files

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



--- Comment #2 from github-bugzilla puremagic.com 2013-05-26 11:08:24 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bb3d33ffd09ecefd776840959a42b38aeb8b0a4b
fix issue 10105 - ICE when converting string literal to static char
array in enum initializer

https://github.com/D-Programming-Language/dmd/commit/cbc45071202fc94d7572ff35582f6babcdf71858
Merge pull request #2079 from hpohl/10105

fix issue 10105 - ICE when converting string literal to static char array in
enum initializer

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


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

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


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