digitalmars.D.bugs - [Issue 4392] New: Problems with const/non-const overloads of member functions
- d-bugmail puremagic.com (40/40) Jun 25 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4392
- d-bugmail puremagic.com (12/12) Jul 02 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4392
http://d.puremagic.com/issues/show_bug.cgi?id=4392 Summary: Problems with const/non-const overloads of member functions Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: webby beardmouse.org.uk PDT --- Using the latest DMD2, the code: // class c1 { void foo() const { } void foo() { } void bar() const { foo(); } } // fails to compile with the error: constest.d(15): Error: function constest.c1.foo () is not callable using argument types () const However, if I either: 1) Change bar() to call this.foo() or 2) switch the 2 foo()s so that the const version is defined second. Then it compiles ok. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 25 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4392 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Resolution| |DUPLICATE *** This issue has been marked as a duplicate of issue 3733 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 02 2011