Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!purdue!haven!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: Is this a bug in some C compilers? Message-ID: <18648@mimsy.UUCP> Date: 20 Jul 89 12:35:56 GMT References: <800@sbsvax.UUCP> <10561@smoke.BRL.MIL> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 17 In article <10561@smoke.BRL.MIL> gwyn@smoke.BRL.MIL (Doug Gwyn) writes: >Certainly [misusing structure members is] not correct C. ... >A standard-conforming compiler is required to diagnose such misusage. I thought the wording was something like `the compiler is required to produce at least one warning for any program that violates one or more syntax or constraints requirements'---which seems to say that the compiler is required to print *some* warning, but not necessarily one about this in particular (it could say `warning, this code smells musty' :-) ). Of course, one would hope that compilers that print deliberately misleading error messages are rare. (`Warning: illegal combination of pointer and integer, op =' anyone? :-/ ) -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris