Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: C Names and Scopes Date: Fri, 10 Feb 2017 16:22:34 -0800 Organization: None to speak of Lines: 26 Message-ID: References: <87vasj5efl.fsf@bsb.me.uk> <8737fm6flc.fsf@bsb.me.uk> <87r3364xy6.fsf@bsb.me.uk> <87mvdtzjy6.fsf@bsb.me.uk> <24c454b7-bd15-43c4-97ce-5cb53f434df0@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="5b75f8dd226436b078478393b0f38f01"; logging-data="5703"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WHNHT9+5HRPf6C6F/iXsX" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:GQACv2SJvnz30fQmBXdPmXEb/lM= sha1:HufRnPto/hCAZWl1bw+mf7zASC8= Xref: csiph.com comp.lang.c:103650 supercat@casperkitty.com writes: [...] > I don't think it's unreasonable to think that a -pedantic-errors flag > should cause constraint violations to be regarded as errors, but not > treat as errors constructs which are allowed to appear in Conforming > programs. Here's what the gcc manual says on the topic. ("-Wpedantic" and "-pedantic" are synonymous.) Some users try to use '-Wpedantic' to check programs for strict ISO C conformance. They soon find that it does not do quite what they want: it finds some non-ISO practices, but not all--only those for which ISO C _requires_ a diagnostic, and some others for which diagnostics have been added. A feature to report any failure to conform to ISO C might be useful in some instances, but would require considerable additional work and would be quite different from '-Wpedantic'. We don't have plans to support such a feature in the near future. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"