Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Is this a bug in some C compilers? Message-ID: <10571@smoke.BRL.MIL> Date: 20 Jul 89 23:23:32 GMT References: <800@sbsvax.UUCP> <10561@smoke.BRL.MIL> <9645@alice.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 15 In article <9645@alice.UUCP> ark@alice.UUCP (Andrew Koenig) writes: >In article <10561@smoke.BRL.MIL>, gwyn@smoke.BRL.MIL (Doug Gwyn) writes: >> A standard-conforming compiler is required to diagnose such misusage. >I don't think so. I'm under the impression that a standard-conforming >compiler is one that accepts standard-conforming programs. No, you're thinking about it the wrong way around. A (non-strictly) conforming program is simply one that is acceptable to SOME conforming implementation (one wonders, why bother to define such a critter; it was essentially a political decision). However, conforming implementations must meet numerous requirements other than simply accepting all strictly standard-conforming programs. Section 2.1.1.3 states: "A conforming implementation shall produce at least one diagnostic message ... for every translation unit that contains a violation of any syntax rule or constraint."