Bug 13225 – [ICE] Access violation on invalid mixin template instantiation

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-30T12:22:00Z
Last change time
2014-08-22T08:05:16Z
Keywords
ice, pull
Assigned to
nobody
Creator
jblume

Comments

Comment #0 by jblume — 2014-07-30T12:22:12Z
mixin template M(T) { } struct S { mixin M!((typeof(this)) => 0); mixin M!(() => undefined); } With v2.066.0-b6 running on Windows this leads to: main.d(8): Error: undefined identifier undefined Unhandled exception at 0x00439BF1 in dmd.exe: 0xC0000005: Access violation reading location 0x00000029. Removing one of the mixins or replacing "undefined" with a literal works.
Comment #1 by k.hara.pg — 2014-07-31T13:03:13Z
Comment #2 by github-bugzilla — 2014-08-06T05:32:10Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/13e5607fa3a4e355e0f7610af9383c6393a989c8 fix Issue 13225 - [ICE] Access violation on invalid mixin template instantiation https://github.com/D-Programming-Language/dmd/commit/d0d95cdce7a509ae1b30f88e75478538fc153ea0 Merge pull request #3840 from 9rnsr/fix13225 Issue 13225 - [ICE] Access violation on invalid mixin template instantiation
Comment #3 by github-bugzilla — 2014-08-08T02:59:21Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5f95454a1e5cfe49ffc01d7ac5cb276c6018732e Merge pull request #3840 from 9rnsr/fix13225 Issue 13225 - [ICE] Access violation on invalid mixin template instantiation
Comment #4 by github-bugzilla — 2014-08-22T08:05:16Z