[Issue 4373] New: Importing class with 'auto foo()' causes DMD Bus error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 23 03:37:01 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4373
Summary: Importing class with 'auto foo()' causes DMD Bus error
Product: D
Version: D2
Platform: x86_64
OS/Version: Mac OS X
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: soul8o8 at gmail.com
--- Comment #0 from Heywood Floyd <soul8o8 at gmail.com> 2010-06-23 03:36:56 PDT ---
// File: a.d
module a;
class A{
auto foo(){
return 0;
}
}
// File: b.d
module b;
import a;
class B : A{
}
% dmd -c a
% dmd -c b
Bus error
% dmd -c a b
% _
* Changing foo() to 'int foo()', 'static auto foo()', 'final auto foo()' or
'private auto foo()' makes it work.
* Changing foo() to 'public auto foo()' or 'const auto foo()' causes the same
error.
* Moving the entire class A to the b.d-file makes it work for all cases.
(Mac OS X 10.6.4, DMD v2.047) PS. D is very nice.
--
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