Path: csiph.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.arch,comp.lang.c Subject: Re: VAX Date: Sun, 17 Aug 2025 22:18:28 -0700 Organization: None to speak of Lines: 19 Message-ID: <874iu56wd7.fsf@example.invalid> References: <0c857b8347f07f3a0ca61c403d0a8711@www.novabbs.com> <2025Jul30.075918@mips.complang.tuwien.ac.at> <2025Aug1.191648@mips.complang.tuwien.ac.at> <106jvc3$qan0$1@dont-email.me> <106kh0k$18ipb$1@paganini.bofh.team> <2025Aug3.185110@mips.complang.tuwien.ac.at> <106otf6$1sov2$1@dont-email.me> <106p4k6$1u13o$1@dont-email.me> <20250804121938.0000122a@yahoo.com> <2025Aug4.140932@mips.complang.tuwien.ac.at> <2025Aug4.165141@mips.complang.tuwien.ac.at> <20250804182839.00000600@yahoo.com> <87sei7do4g.fsf@example.invalid> <20250804220315.00007240@yahoo.com> <20250805140647.927@kylheku.com> <107t6ds$2gluc$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Mon, 18 Aug 2025 05:18:32 +0000 (UTC) Injection-Info: dont-email.me; posting-host="df5280f1541a6a90d0979612512d7695"; logging-data="2971809"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18taplTWFCTeQ/w1pCF1bhp" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:epWDSzsNUaMgVd10zYczlZZMOzY= sha1:Ypd7fiKy8QR3fR9094bj0C4TA/k= Xref: csiph.com comp.arch:113176 comp.lang.c:394192 Jakob Bohm writes: [...] > I am unsure how GCC --pedantic deals with the standards-contrary > features in the GNUC89 language, such as the different type of (foo, > 'C') (GNUC says char, C89 says int), maybe specifying standard C > instead of GNUC reverts those to the standard definition . I'm not sure what you're referring to. You didn't say what foo is. I believe that in all versions of C, the result of a comma operator has the type and value of its right operand, and the type of an unprefixed character constant is int. Can you show a complete example where `sizeof (foo, 'C')` yields sizeof (int) in any version of GNUC? -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */