Bug 10105 – ICE when converting string literal to static char array in enum initializer

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-17T06:46:00Z
Last change time
2013-05-26T11:08:51Z
Keywords
ice, pull
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2013-05-17T06:46:19Z
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";
Comment #1 by henning — 2013-05-26T09:57:01Z
Comment #2 by github-bugzilla — 2013-05-26T11:08:24Z
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