[Issue 6177] New: Insert in associative array: Internal error: backend/cgcs.c 162

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 19 09:11:30 PDT 2011


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

           Summary: Insert in associative array: Internal error:
                    backend/cgcs.c 162
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: jsancio at gmail.com


--- Comment #0 from Jose Garcia <jsancio at gmail.com> 2011-06-19 09:06:45 PDT ---
I am hitting what I believe is a dmd bug when I try to insert into an AA that
points to a struct that contains a struct with a destructor. The following code
yields an error:

struct Parent
{
   struct Child
   {
      AnotherStruct another;
   }

   struct AnotherStruct
   {
      ~this() {}
   }

   void fun()
   {
      map[0] = Selection.init;
   }

   Child[int] map;
}

void main()
{}

---

dmd -w map_test.d
Internal error: backend/cgcs.c 162


Note: I am using the latest master.

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