summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Moore <jaredm@svn.gnome.org>2008-06-26 01:06:01 +0000
committerJared William Moore <jaredm@src.gnome.org>2008-06-26 01:06:01 +0000
commit2cf649052881e7d6678ccf9d725d441bb57cd987 (patch)
tree58e8ec9e034e1d75e47857c52f2d3e1b9293dac0
parent2dfad6face2173fde0d800fbbfe5122e6acc4223 (diff)
downloadvala-2cf649052881e7d6678ccf9d725d441bb57cd987.tar.gz
Add workaround for exception codegen problem, fixes bug 539608.
2008-06-26 Jared Moore <jaredm@svn.gnome.org> * vala/valaparser.vala: Add workaround for exception codegen problem, fixes bug 539608. svn path=/trunk/; revision=1648
-rw-r--r--ChangeLog6
-rw-r--r--vala/valaparser.vala3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 54d2d0fa9..e52affc52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-26 Jared Moore <jaredm@svn.gnome.org>
+
+ * vala/valaparser.vala:
+
+ Add workaround for exception codegen problem, fixes bug 539608.
+
2008-06-25 Jared Moore <jaredm@svn.gnome.org>
* vapi/glib-2.0.vapi:
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index f164d8534..25c0a5bcb 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -2068,7 +2068,8 @@ public class Vala.Parser : CodeVisitor {
var initializer = new InitializerList (get_src (begin));
if (current () != TokenType.CLOSE_BRACE) {
do {
- initializer.append (parse_variable_initializer ());
+ var init = parse_variable_initializer ();
+ initializer.append (init);
} while (accept (TokenType.COMMA));
}
expect (TokenType.CLOSE_BRACE);