[Issue 3716] Regression (D2 only) with multi dimensional array literals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 25 20:45:11 PST 2010


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


Ellery Newcomer <ellery-newcomer at utulsa.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ellery-newcomer at utulsa.edu


--- Comment #2 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2010-02-25 20:45:10 PST ---
looks like it parses an expression rather than an initializer. 
this should fix it:

--- parse.c     (revision 400)
+++ parse.c     (working copy)
@@ -3248,6 +3248,7 @@
                        {   t = peek(t);
                            if (t->value != TOKsemicolon &&
                                t->value != TOKcomma &&
+                               t->value != TOKrbracket &&
                                t->value != TOKrcurly)
                                goto Lexpression;
                            break;

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