Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
January 13, 2011 [Issue 5448] New: Array of AAs literal doesn't work | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5448 Summary: Array of AAs literal doesn't work Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2011-01-13 02:53:00 PST --- This D2 program: void main() { pragma(msg, typeof([[1: 2]]).stringof); int[int][] aaa = [[1: 2]]; } DMD 2.051 prints: int[int][] test.d(3): Error: cannot use array to initialize int[int] test.d(3): Error: cannot implicitly convert expression ([(__error)]) of type int[int][] to int[int][] So the literal seems correctly recognized. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 16, 2011 [Issue 5448] Array of AAs literal doesn't work | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5448 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich@gmail.com --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-01-16 14:55:56 PST --- But this works: void main() { pragma(msg, typeof([[1: 2]]).stringof); int[int][] aaa = [[1: 2]].dup; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 02, 2012 [Issue 5448] Array of AAs literal doesn't work | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5448 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull CC| |yebblies@gmail.com Platform|x86 |All AssignedTo|nobody@puremagic.com |yebblies@gmail.com OS/Version|Windows |All --- Comment #2 from yebblies <yebblies@gmail.com> 2012-02-02 16:24:13 EST --- https://github.com/D-Programming-Language/dmd/pull/683 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 03, 2012 [Issue 5448] Array of AAs literal doesn't work | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5448 --- Comment #3 from yebblies <yebblies@gmail.com> 2012-02-03 17:55:30 EST --- *** Issue 3828 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 13, 2012 [Issue 5448] Array of AAs literal doesn't work | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5448 --- Comment #4 from github-bugzilla@puremagic.com 2012-10-12 23:50:14 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f1e11a6918747bd9de722ecf02a42233fda01e2b Issue 5448 - Array of AAs literal doesn't work When an assoc array literal is mistakenly parsed as an array literal, reinterpret it during semantic. https://github.com/D-Programming-Language/dmd/commit/042038f08c77a8566d5cf8e423b004c24ee7efc9 Merge pull request #683 from yebblies/issue5448 Issue 5448 - Array of AAs literal doesn't work -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 13, 2012 [Issue 5448] Array of AAs literal doesn't work | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5448 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Kenji Hara <k.hara.pg@gmail.com> 2012-10-13 02:07:23 PDT --- D1 fix: https://github.com/D-Programming-Language/dmd/commit/7268fce0fb1c5f23e25271fc6828ecbad1330f1a -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation