Redeclaration of local variables (?)
Posted in 1992
Platform: Sun 3/100, SunOS4.1 INFORMIX-4GL Version 4.00.UD3 with an INFORMIX-SQL Version 4.00.UD4 Standard Engine. I had the message: ut_merge.c Line 4351 redeclaration of prepare_sel_ followed by the usual fatal error diagnostics from make. The same module makes fine under Version 4.1 on a SPARC and on 1.10.00B on a SunOS3.5 machine. When I checked the source module, prepare_sel_ is a *local* variable defined in three separate functions. It's used for the same purpose in each, to put the results of a CONSTRUCT statement in. In two of these functions it was defined as a CHAR(300) and in one as a CHAR(500). It shouldn't matter surely. As a local definition in each function, it should get it's own allocation irrespective of any other local variable of the same name. Yes, I know this is 4.0 and we did try to avoid getting this because of what I've read in this group before. However, I'm told that Informix have not ported 4.1 to this platform and, as it's going out of fashion, I doubt if they ever will. I got round the problem by changing the defines in the other two functions to CHAR(500), but sheesh, this is probably only the first of many strange bugs that I'm going to find. Anybody got the list of defacto bugs for this release? Regards Neil Neil S. Briscoe Telephone: +44 252 376737 System Administrator Fax: +44 252 376644 Email: neil@salmon.demon.co.uk nbriscoe@cix.compulink.co.uk Bartec Medical Systems Ltd. Impression House Invincible Road "!##@!** Listen who swears Farnborough Christopher Robin has fallen downstairs" Hants GU14 7NP -- The Goodies Book of Criminal Records England "A man is incomplete until he's married -- then he's finished!" -- Seen on a desktop calendar.