Thread overview
[Issue 3709] New: Associative array of associative arrays gets confused
Jan 15, 2010
Leandro Lucarella
Jan 27, 2010
Don
Jan 28, 2010
Don
January 15, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3709

           Summary: Associative array of associative arrays gets confused
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: andrei@metalanguage.com


--- Comment #0 from Andrei Alexandrescu <andrei@metalanguage.com> 2010-01-15 11:14:20 PST ---
void main() {
    in[int][int] a;
    a[5] = (int[int]).init;
}

Error is:

/path/to/druntime/import/object.di(293): Error: cannot implicitly convert
expression (_D6object26__T16AssociativeArrayTiTiZ16AssociativeArray6__initZ) of
type AssociativeArray!(int,int) to int[int]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 15, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3709


Leandro Lucarella <llucax@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |llucax@gmail.com


--- Comment #1 from Leandro Lucarella <llucax@gmail.com> 2010-01-15 15:23:58 PST ---
You have a typo in the example code, right? "in[int][int] a;" should be "int[int][int] a;"?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 27, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3709


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
                 CC|                            |clugdbug@yahoo.com.au
            Version|unspecified                 |2.039
         OS/Version|Mac OS X                    |All
           Severity|normal                      |regression


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2010-01-27 07:10:17 PST ---
This is a regression: it worked in 2.035 and earlier.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 28, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3709


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #3 from Don <clugdbug@yahoo.com.au> 2010-01-28 11:10:22 PST ---
This is the same as bug 3491, and the 3491 patch fixes it.

*** This issue has been marked as a duplicate of issue 3491 ***

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