PR# 14750 c compiler behaves differently than eiffel on "like" return types
Problem Report Summary
Category: C Compilation
Environment: EiffelStudio 6.2 on Windows XP with Microsoft Visual Studio .Net 2003
Synopsis: c compiler behaves differently than eiffel on "like" return types
The attached snippet works when melted. C compiling it results in "pointer can only be subtracted from another pointer".
Compile the attached snippet.
Problem Report Interactions
From:larryl Date:2009/07/02 Download
This bug is reproducible in Eiffel Studio 188.8.131.5251 GPL Edition - linux-x86. The output of C compile is: Preparing C compilation Compiling C code in E1 Compiling C code in C1 In file included from big_file_C1_c.c:80: ap25.c: In function Ã¢??F25_549Ã¢??: ap25.c:77: error: invalid operands to binary - (have Ã¢??intÃ¢?? and Ã¢??EIF_REFERENCEÃ¢??) make: *** [big_file_C1_c.o] Error 1 make: *** [C1/Cobj1.o] Error 2