Summary: Problems with const/non-const overloads of member
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Richard Webb <> 2010-06-25 07:34:43 
PDT ---
Using the latest DMD2, the code:

class c1
   void foo() const


   void foo()


   void bar() const

fails to compile with the error:

constest.d(15): Error: function () is not callable using
argument types () const

However, if I either:
1) Change bar() to call or
2) switch the 2 foo()s so that the const version is defined second.

Then it compiles ok.

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

Reply via email to