D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7906 - [ICE] enum declaration with invalid array literal crashes dmd
Summary: [ICE] enum declaration with invalid array literal crashes dmd
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: ice, pull
: 7792 (view as issue list)
Depends on:
Blocks:
 
Reported: 2012-04-14 00:33 UTC by Kenji Hara
Modified: 2012-04-23 10:45 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kenji Hara 2012-04-14 00:33:01 UTC
Following invalid code crashes dmd.

void main()
{
    enum s = [string.min];
}

output:
test.d(3): Error: no property 'min' for type 'string'
(crash)
Comment 2 github-bugzilla 2012-04-14 01:31:56 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a157cf83a6593206f421c29cf62b9aef475b3772
fix Issue 7906 - [ICE] enum declaration with invalid array literal crashes dmd

https://github.com/D-Programming-Language/dmd/commit/2b41879248b4c17e105b6c897baf8b8ebea0554f
Merge pull request #877 from 9rnsr/fix7906

Issue 7906 - [ICE] enum declaration with invalid array literal crashes dmd
Comment 4 SomeDude 2012-04-21 11:51:54 UTC
I'm pretty sure it's a duplicate, but can't find the other one again.:(
Comment 5 Kenji Hara 2012-04-23 10:45:35 UTC
*** Issue 7792 has been marked as a duplicate of this issue. ***