[#11073] segfault printing instruction sequence for iterator — <noreply@...>

Bugs item #10527, was opened at 2007-05-02 14:42

14 messages 2007/05/02
[#11142] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Nobuyoshi Nakada <nobu@...> 2007/05/10

Hi,

[#11188] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Paul Brannan <pbrannan@...> 2007/05/16

On Thu, May 10, 2007 at 04:51:18PM +0900, Nobuyoshi Nakada wrote:

[#11234] Planning to release 1.8.6 errata — Urabe Shyouhei <shyouhei@...>

Hi all.

17 messages 2007/05/25

[ ruby-Bugs-3361 ] Ruby 1.8.4 parse errors

From: <noreply@...>
Date: 2007-05-29 15:54:38 UTC
List: ruby-core #11288
Bugs item #3361, was opened at 2006-01-29 08:09
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3361&group_id=426

>Category: Triage (do not select)
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Tilman Sauerbeck (tilman)
Assigned to: Nobody (None)
Summary: Ruby 1.8.4 parse errors

Initial Comment:
t = Struct.new("Foo", :hour, :min).new
t.hour = t.min = 1
t_offset = (t.hour * 60 * 60) + t.min *60

=> parse error, unexpected tSTAR, expecting $

Changing the end of the line to
"t.min * 60", ie adding a space after the star makes it compile successfully.

This doesn't only affect the '*' operator, but at least '+' suffers from the same bug.

I believe this was introduced with Ruby 1.8.4, but I'm not sure whether it also existed in previous releases.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3361&group_id=426

In This Thread

Prev Next