http://d.puremagic.com/issues/show_bug.cgi?id=5303
Summary: (mtype.c) Compiler crash caused by pure Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2010-12-01 12:51:04 PST --- struct Foo {} void bar(T)(Foo* f) pure if(true) {} void main() { bar!(int)(null); } DMD 2.050 shows: Assertion failure: 'tn->mod & MODimmutable || tn->mod & MODconst' on line 876 in file 'mtype.c' If I remove the pure the error vanishes. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------