Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Constants and undefined behavior
Date: Mon, 29 Jun 2026 06:27:13 -0700
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <86ik7179zi.fsf@linuxsc.com>
References: <10v7b32$2u85v$1@dont-email.me> <10vt7b9$pi3s$1@kst.eternal-september.org> <110032s$clq$1@reader1.panix.com> <1100g0e$1lt8i$1@kst.eternal-september.org> <11058u3$mv5$1@reader1.panix.com> <1107q1e$ccfa$1@paganini.bofh.team> <86cxxj8u1b.fsf@linuxsc.com> <111abp6$vtir$2@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Mon, 29 Jun 2026 13:27:17 +0000 (UTC)
Injection-Info: dont-email.me; logging-data="408222"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EgbBT5mG8/UIeMJhfT+mqtfX2p6c/k/Y="; posting-host="256370b7936bc263cc2db6738e470b6a"
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:dBNGHPXmFX9Mxu9GNwwd4RVREcM= sha1:7WbMLhZS9reaow9kot9oRiQ8WLg= sha256:y8DQNePazCx/4ncVHjweF3U7Q8e9C5h6dPwIwbjmA98= sha1:RsvBiTugCaq4sywMhTtP0bBxq/Y= sha256:K8cyde+rvvNcdN3d9HNLJXZCRpcvZOcXgkU62sqQogQ= sha1:BLIrQwdtVdhRjSZJZJI5hyKSjlA=
Xref: csiph.com comp.lang.c:400285
antispam@fricas.org (Waldek Hebisch) writes:
> Tim Rentsch wrote:
>
>> antispam@fricas.org (Waldek Hebisch) writes:
[...]
>>> UB in C standard corresponds with 'error' in Pascal standard. [...]
>>
>> Does it? In C a syntax error is undefined behavior, but it
>> requires a diagnostic. (I don't mean to single out just syntax
>> errors; there are other examples.)
>
> I mean typical UB, especialy cases that people complain about.
> [...]
Then you should say what you mean, rather than leaving it
for other people to guess.