Summary: Pure member functions can not call other pure member
           Product: D
           Version: 2.032
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Rob Jacques <> 2009-09-16 21:37:24 PDT ---
Member functions marked as pure can not be called from other pure functions. 

struct foo {
    real a() pure {
        return 1.0;
    real b() pure {
        return a; // Error on this line

Error: function () is not callable using argument types ()

Marking a() as pure const allows code to compile, and produces correct results.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to