Thread overview
[Issue 8954] New: Missing line number in error message for uncollable destructor/postblit
Nov 03, 2012
Denis Shelomovskij
May 03, 2013
Maxim Fomin
May 03, 2013
Maxim Fomin
November 03, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8954

           Summary: Missing line number in error message for uncollable
                    destructor/postblit
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: verylonglogin.reg@gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2012-11-03 14:50:18 MSK ---
---
struct S
{
    this(this) { }
    ~this() { }
}

struct S2
{ const S s; }
---

Output:
---
Error: destructor main.S.~this () is not callable using argument types () const
Error: function main.S.__postblit () is not callable using argument types ()
const
---

Severity is "Critical" as Don write in Issue 5314, comment 10:
> They're equivalent to compiler segfaults. Worse than any rejects-valid bug. They're nearly always very easy to fix, too. There's no excuse for them.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 03, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8954


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jens.k.mueller@gmx.de


--- Comment #1 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-05-03 05:15:12 PDT ---
*** Issue 10020 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 03, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8954


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc


--- Comment #2 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-05-03 05:21:57 PDT ---
*** Issue 9031 has been marked as a duplicate of this issue. ***

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