PR# 18766 Calling a separate object

Problem Report Summary
Submitter: andersoxie
Category: Compiler
Priority: High
Date: 2013/12/03
Class: Bug
Severity: Critical
Number: 18766
Release: 13.11
Confidential: No
Status: Analyzed
Responsible:
Environment: Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36
Synopsis: Calling a separate object

Description
Hi

This is related to the problem I reported in the user group. However, I have not been able to get he same error as then, yet, but I got this related problem.

If I execute the test case it craches. I have added some additional code that makes it work. 

Anders
To Reproduce
Execute the test case. THe evaluater dies. Then coimment that line and uncomment the other lines in USER_SETTINGS and then the test case works.

Might be that I do something wrong but then I think the compiler should have complained.
Problem Report Interactions
From:alexk_es    Date:2015/10/06    Status: Analyzed    Download   
Added test#valid287.

From:andersoxie    Date:2015/10/04    Download   
Hi

I made some investigation at this case with the 15.08 version of Eiffel Studio.

I found out that if I write as in the original code, it hangs when the code "Result := s"

get_user: STRING
local
	s : separate STRING_32
do
	s := setting_data.user
--	Result :=  create {STRING}.make_from_separate (to_string_8(s))
	Result :=  s
end


But if I change to it does not hangs. But why am I not wanred when writing as in the above case when it should be as below?

get_user: STRING
local
	s : separate STRING_32
do
	s := setting_data.user
--	Result :=  create {STRING}.make_from_separate (to_string_8(s))
	Result := ""
	separate
		s as s_s
	do
		create Result.make_from_separate (s_s.to_string_8)
	end
end

From:andersoxie    Date:2013/12/03    Download   
Attachments for problem report #18766

Attachment: problem_reports_to_eiffel_support.zip     Size:2830