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

           Summary: No line number "cannot modify struct ... with
                    immutable members"
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic, rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Kenji Hara <[email protected]> 2013-05-24 01:07:53 PDT ---
This code prints strange no line number error.

struct S
{
    this(this) {}
}
struct X
{
    const int x;
    S s;
}
void main()
{
    X x;
}

output:
Error: cannot modify struct this X with immutable members

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

Reply via email to