[Bug 265] New: [rejects-valid] Name resolution clash (vs dmd)

via D.gnu d.gnu at puremagic.com
Sat Jul 15 01:22:31 PDT 2017


https://bugzilla.gdcproject.org/show_bug.cgi?id=265

            Bug ID: 265
           Summary: [rejects-valid] Name resolution clash (vs dmd)
           Product: GDC
           Version: 6.x
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw at gdcproject.org
          Reporter: sebastien.alaiwan at gmail.com

class C
{
  int f(int i)
  {
    import std.stdio;
    return lines[i].lag;
  }

  S[] lines;

  static struct S
  {
    int lag;
  }
}

Here's what I got with dmd:
$ dmd test.d -c && echo ok
ok

$ gdc test.d -c && echo ok
test.d:6:17: error: no [] operator overload for type lines
     return lines[i].lag;
                 ^
Seems like std.stdio is interfering.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the D.gnu mailing list