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: nob...@puremagic.com
        ReportedBy: soul...@gmail.com


--- Comment #0 from Heywood Floyd <soul...@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: -------

Reply via email to