PR# 20004 Once classes: non-separate inspect expression

Problem Report Summary
Submitter: gobobe
Category: Compiler
Priority: Low
Date: 2026/06/08
Class: Bug
Severity: Non-critical
Number: 20004
Release: 25.12.9.8922
Confidential: No
Status: Open
Responsible:
Environment: win
Synopsis: Once classes: non-separate inspect expression

Description
In the example below, the system compiles fine in SCOOP mode, but it hangs at execution.
Replacing:

```eiffel
inspect b
...
end
```

with:

```eiffel
separate b as sb do
   inspect sb
   ...
   end
end
```

solves the problem. I think that the issue is that internally the inspect-instruction needs to access some properties of the object attached to `b` (like a qualified call would do). So the inspect expression of the inspect-instruction needs to be controlled (as if it was the target of a qualified call).

--
Eric Bezault
To Reproduce
class AA

create

	make

feature

	make
		local
			b: separate BB
		do
			create b.f
			inspect b
			when {BB}.f then
			else
			end
		end
	
end
~~~~~~~
once class BB

create

	f

feature

	f
		once
		end

end
Problem Report Interactions