[Issue 10582] New: Programmed and Compiler generated symbols clash.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 9 09:46:07 PDT 2013


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

           Summary: Programmed and Compiler generated symbols clash.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: ibuclaw at ubuntu.com


--- Comment #0 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-07-09 09:46:05 PDT ---
This is more of a pathological case, but produces an unexpected error
nonetheless.  Ditto for any other type of compiler generated temporary symbol.


struct Bug
{
    ~this() { }
    int opApply(in int delegate(int i) dg) { return 0; }
}

void main()
{
  int __sl5;
  int __sl6;
  foreach (i; Bug()) {} // Error: declaration __sl6 is already defined
}

-- 
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