[Issue 3092] Indexing a tuple produces a tuple containing the indexed element
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 20 15:56:10 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3092
Leandro Lucarella <llucax at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |llucax at gmail.com
--- Comment #13 from Leandro Lucarella <llucax at gmail.com> 2010-10-20 15:55:13 PDT ---
(In reply to comment #8)
> I have now fixed the bug, it's a trivial 7 line patch which teaches
> TypeSArray::resolve(...) to recognize if it's indexing a type element. Without
> the patch, TypeSArray::resolve(...) will create a 1-element-slice when indexing
> a type in a tuple. This fixes the bug described in this issue.
>
> This patch does not fix the pragma(msg, "values: ", values); bugs, which is
> caused by another bug I described in a previous comment. That one would also be
> easy to fix, it's only a formatting bug, I'm just not sure how a proper patch
> for that would look like.
>
> I also tested dmd rev 714 (that one in branch dmd1.x) and my patched version of
> it in dstress. No improvements, regressions or changes were introduced. I then
> created a testcase that can be added to the dstress/compile/t directory, which
> passes with my patch applied, but fails in dmd rev 714.
Added to dstress, changeset 1622:
http://www.dsource.org/projects/dstress/changeset/1622%3Ad402aa53926c
Thanks!
--
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