Bug 7907 – [ICE] invalid expression on template argument crashes dmd

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-14T04:15:00Z
Last change time
2012-04-14T14:11:17Z
Keywords
ice, pull
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2012-04-14T04:15:15Z
Following invalid code crashes dmd. template Id(E) { alias E Id; } template Id(alias E) { alias E Id; } void main() { //static assert(!__traits(compiles, { alias Id!([string.min]) X; })); alias Id!([string.min]) X; }
Comment #1 by k.hara.pg — 2012-04-14T04:28:28Z
Comment #2 by github-bugzilla — 2012-04-14T13:00:47Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/67207ff6a4a191daf1daff262bacbae240780a4d fix Issue 7907 - [ICE] invalid expression on template argument crashes dmd https://github.com/D-Programming-Language/dmd/commit/a8cf4207ca784652b802e5eec98ea94e5c7d33cf Merge pull request #879 from 9rnsr/fix7907 Issue 7907 - [ICE] invalid expression on template argument crashes dmd