[Issue 10160] New: No line number "cannot modify struct ... with immutable members"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 24 01:07:53 PDT 2013


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: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list