Thread overview |
---|
April 14, 2007 [Issue 1146] New: mixin + assert() crashes compiler | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1146 Summary: mixin + assert() crashes compiler Product: D Version: 1.011 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P3 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: dheld@codelogicconsulting.com The code below results in the compiler attempting to dereference a null pointer. I don't know if the code should be legal or not, but I'm pretty sure the compiler shouldn't crash either way. emplate MetaString(String) { alias String Value; } void main() { alias MetaString!("2 == 1") S; assert(mixin(S.Value)); } -- |
April 23, 2007 [Issue 1146] mixin + assert() crashes compiler | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1146 thomas-dloop@kuehne.cn changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Windows |All ------- Comment #1 from thomas-dloop@kuehne.cn 2007-04-23 12:54 ------- "template MetaString(String)" expects String to be a type, "2 == 1" isn't a type thus the code is illegal. Added to DStress as http://dstress.kuehne.cn/nocompile/m/mixin_33_A.d http://dstress.kuehne.cn/nocompile/m/mixin_33_B.d http://dstress.kuehne.cn/nocompile/m/mixin_33_C.d -- |
April 27, 2007 [Issue 1146] mixin + assert() crashes compiler | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1146 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from bugzilla@digitalmars.com 2007-04-27 14:57 ------- Fixed DMD 1.014 -- |
Copyright © 1999-2021 by the D Language Foundation