[Issue 4869] New: auto return + inheritance + modules = compiler crashes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 14 19:13:59 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4869
Summary: auto return + inheritance + modules = compiler crashes
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2010-09-14 19:13:28 PDT ---
The following code crashes both DMD 2.048 and 2.049 beta on Windows:
// Module a.d
class Base {
auto fun() { return 1; }
}
// Module b.d
import a;
class Derived : Base {}
// Command
dmd -c b.d
Any of the following will prevent this bug from being reproduced:
1. Changing the return type of fun from auto to int.
2. Passing both modules to DMD at once.
3. Putting both classes in the same module.
--
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