This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Should fold preserve types?


I have found multiple places where `fold' (from gcc-3.5-20040327)
returns integers as results of comparisons. GNU Pascal needs 
boolean type so passes as argument expresion of boolean type.
Since `fold' returns integers this causes spurious error messages
on valid Pascal programs. So my question is if `fold' should be 
fixed or should I put a wrapper around `fold' for Pascal use?

-- 
                              Waldek Hebisch
hebisch@math.uni.wroc.pl 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]