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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from David Simcha <[email protected]> 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: -------