Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: New features added into C23 standard Date: Mon, 15 Aug 2022 22:52:55 -0700 Organization: A noiseless patient Spider Lines: 10 Message-ID: <867d38vio8.fsf@linuxsc.com> References: <3093c98e-d014-47e4-bcf3-3f108d7c2c03n@googlegroups.com> <87mtcwzwt9.fsf@nosuchdomain.example.com> <88293f89-5f19-4fb3-844b-20e3a063b65cn@googlegroups.com> <87a68ox2fd.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader01.eternal-september.org; posting-host="327aa8f3763fd82bcbb1f30d2282ba71"; logging-data="4192965"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+neS0bB4rVGZEbQfYHSkVCXO983tlr1yk=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:SgjZByhbLyE+XMJA16ozqX3PKT8= sha1:W4G+ReEhULLy4FDXlY+WVFRV+E0= Xref: csiph.com comp.lang.c:167034 Richard Damon writes: > A file scope decleration like > > int bomb = *(int*)0; > > might allow a compile time rejection for undefined behavior. It's a constraint violation. The program may be rejected on that basis alone.