[Issue 5303] New: (mtype.c) Compiler crash caused by pure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 1 12:52:35 PST 2010
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: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list