[Issue 1146] New: mixin + assert() crashes compiler
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 14 13:56:39 PDT 2007
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 at digitalmars.com
ReportedBy: dheld at 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));
}
--
More information about the Digitalmars-d-bugs
mailing list