[Issue 8477] [2.060 beta] Strange error calling member func from overridden Exception::toString()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 30 15:42:00 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8477


Dmitry Olshansky <dmitry.olsh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh at gmail.com


--- Comment #1 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2012-07-30 15:41:59 PDT ---
That means Exception has its toString defined as const thus your override also
must be const (and implicitly supposed to be).

Then it tries to call line and dies.

Marking lines as const fixes issue.

So it's either invalid report or request for better diagnostics.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list