@@ -1828,7 +1828,7 @@ implementation
blockn,
calln :
begin
- if (hp.nodetype=calln) or
+ if ((hp.nodetype=calln) and not(is_void(hp.resultdef))) or
(nf_no_lvalue in hp.flags) then
{ Temp strings are stored in memory, for compatibility with
@@ -0,0 +1,12 @@
+{ %fail ]
+procedure proc;
+begin
+end;
+
+procedure test(const o);
+ test(proc); // project1.lpr(10,3) Error: Internal error 2011010304
+end.