Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ncar!gatech!mcnc!rti!sas!toebes From: toebes@sas.UUCP (John Toebes) Newsgroups: comp.sys.amiga Subject: Re: Lattice compiler error Keywords: lattice, c, error Message-ID: <545@sas.UUCP> Date: 12 Jun 88 01:16:54 GMT References: <197@beowulf.UUCP> Reply-To: toebes@sas.UUCP (John Toebes) Organization: SAS Institute Inc, Cary NC Lines: 18 In article <197@beowulf.UUCP> rsbx@beowulf.UUCP (Raymond S Brand) writes: >XX * This module demostrates the Lattice version 4.01 compiler generating >XX * a CXERR: 19 error message; >XXtypedef struct hard_point { float hx, hy; } HardPoint; >XX next = p->ptype == ELine ? p->pe.point : move; If you look carefully, this program is doing a structure assignment as the result of a conditional ?: expression. K&R doesn't explicitely allow it although ANSI has added support for it. The only fix with the 4.01 compiler would be to disallow the construct. Granted a CXERR is not appropriate. This brings up the point that any problems with a product should go to the vendor. Usenet is not a tech support place for any vendor (nor should it be as everyone pays for the transfer of information). [Not meant as a flame of any sort, I just want to make sure everything is in its place and I don't miss what I have to do] /*---------------------All standard Disclaimers apply---------------------*/ /*----Working for but not officially representing SAS or Lattice Inc.-----*/ /*----John A. Toebes, VIII usenet:...!mcnc!rti!sas!toebes-----*/ /*------------------------------------------------------------------------*/