[Issue 5287] New: (crash mtype.c) on function with default argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 28 15:39:53 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5287
Summary: (crash mtype.c) on function with default argument
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
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-11-28 15:38:26 PST ---
This is wrong D2 code:
void foo(Bar* p=null) {}
void main() {
foo();
}
DMD 2.050 crashes on it:
bug.d(1): Error: identifier 'Bar' is not defined
bug.d(1): Error: Bar is used as a type
Assertion failure: 'tn->mod == MODimmutable' on line 880 in file 'mtype.c'
--
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