Euphoria Ticket #913: Euphoria fails on bad index, but does not generate an error

The following code will fail, but not produce a proper error message, or any output in ex.err.

public function do_buggy(sequence this) 
 
	-- zero index of subindex is a bug 
	return this[1][0] 
 
end function 
 
atom a = do_buggy({}) 

The error is (obviously) in the zero indexing.

Version


4.1.0 development (5783:d41527402a7a, 2014-01-16 02:53:44)

Operating System


Platform: WinNT, Build: Windows7, Service Pack 1:2

Include Directories


1: C:\Euphoria\include\ 2: c:\euphoria\bin 3: C:\Euphoria/include

EUDIR


C:\euphoria

Details

Type: Bug Report Severity: Major Category: Error Reporting
Assigned To: mattlewis Status: Fixed Reported Release: 4.x
Fixed in SVN #: View VCS: none Milestone: 4.1.0

1. Comment by mattlewis Jan 21, 2015

This looks like a regression from ticket:911.

2. Comment by mattlewis Feb 02, 2015

See: hg:euphoria/rev/57179171dbed

changeset: 6300:57179171dbed parent: 6282:8409ceb39af5 user: Matt Lewis date: Mon Feb 02 09:18:53 2015 -0500 files: source/be_rterror.c tests/t_c_deseq_func.d/control.err tests/t_c_deseq_seq.d/control.err description:

  • more nuanced subs / slice error message
  • fixes ticket 913

Search



Quick Links

User menu

Not signed in.

Misc Menu