[Issue 8954] New: Missing line number in error message for uncollable destructor/postblit

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 3 04:50:20 PDT 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 at puremagic.com
        ReportedBy: verylonglogin.reg at gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at 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: -------


More information about the Digitalmars-d-bugs mailing list