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

--- Comment #0 from Heywood Floyd <> 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

* 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:
------- You are receiving this mail because: -------

Reply via email to