Bug 7562 – DMD crashes by using TemplateThisParameter

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2012-02-22T03:50:00Z
Last change time
2012-02-22T19:07:48Z
Keywords
ice, pull
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2012-02-22T03:50:11Z
dmd2.059head in Window7 64bit system. This code crashes dmd in compile. static struct MyInt { private int value; mixin ProxyOf!value; } mixin template ProxyOf(alias a) { template X1(){} template X2(){} template X3(){} template X4(){} template X5(){} template X6(){} template X7(){} template X8(){} template X9(){} template X10(){} void test1(this X)(){} void test2(this Y)(){} } void main(){}
Comment #1 by k.hara.pg — 2012-02-22T03:56:29Z
Comment #2 by github-bugzilla — 2012-02-22T16:30:32Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2928f385aa7482bd4589016eddb608226b5d35f5 fix Issue 7562 - DMD crashes by using TemplateThisParameter Uninitialized pointer dereference crashes compiler. https://github.com/D-Programming-Language/dmd/commit/7d0a4be8fde64ba0a7e5503addf45f0ed561dcc8 Merge pull request #757 from 9rnsr/fix7562 Issue 7562 - DMD crashes by using TemplateThisParameter