summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-20 16:22:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-20 16:22:23 +0000
commitbe3d0202f40c28841aaf3e3cee17d2c1b47c6da2 (patch)
tree3f54921cdc6233a2b0442f11818063b51c1fc2d5
parenta77d2d5f72c993cb7fd3af0a8301e8588e6abdef (diff)
downloadruby-be3d0202f40c28841aaf3e3cee17d2c1b47c6da2.tar.gz
ruby-be3d0202f40c28841aaf3e3cee17d2c1b47c6da2.tar.xz
ruby-be3d0202f40c28841aaf3e3cee17d2c1b47c6da2.zip
* parse.y (bodystmt): ensure clause was excuted on else clause
without rescue clase. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--parse.y2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 20a120150..48e5a05e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue May 21 01:16:46 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * parse.y (bodystmt): ensure clause was excuted on else clause
+ without rescue clase.
+
Tue May 21 00:20:25 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
* ext/dl/ptr.c: rename PtrData::alloc to PtrData::malloc.
diff --git a/parse.y b/parse.y
index b30f73667..375fca843 100644
--- a/parse.y
+++ b/parse.y
@@ -309,7 +309,7 @@ bodystmt : compstmt
}
else if ($3) {
rb_warn("else without rescue is useless");
- $$ = block_append($$, $4);
+ $$ = block_append($$, $3);
}
if ($4) {
$$ = NEW_ENSURE($$, $4);