From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B44483858CDA; Tue, 2 Apr 2024 16:20:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B44483858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712074819; bh=25VzjML0zphWcHIF3yb11QxQkKN9DFN6N4MK2H52c2Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=O9qCk6fsMKYlpy2t9ioLLSeHj4vmTEkjwWeoJJTYk8tONV9BUV7f3MB8rn0nI2Y1C GFyv4xtt7VauhLUiq3OqgG0jQ5ELyG826Le4IF/iz/akKHyjpAEBaGQgucc1u8BlxQ jeXgf5ZWLcQfAlPY68WbL0FmFjDUzN24HY4kaoQo= From: "harald at gigawatt dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/114526] ISO C does not prohibit extensions: fix misconception. Date: Tue, 02 Apr 2024 16:20:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: diagnostic, documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: harald at gigawatt dot nl X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114526 --- Comment #10 from Harald van Dijk --- Sorry, sent my earlier comment too soon. (In reply to Joseph S. Myers from comment #8) > I believe conversions between function and object pointers are undefined = as > a property of the translation unit - not of a particular execution. But there is nothing in the standard to support this. The standard fully defines the behaviour of the program I posted, which is just to return 0.=