www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3709] New: Associative array of associative arrays gets confused

reply d-bugmail puremagic.com writes:
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



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: -------
Jan 15 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3709


Leandro Lucarella <llucax gmail.com> changed:

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



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: -------
Jan 15 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Jan 27 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3709


Don <clugdbug yahoo.com.au> changed:

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



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: -------
Jan 28 2010