From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 551DB3858C00; Thu, 23 Feb 2023 20:45:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 551DB3858C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677185109; bh=aCiBOzKH2hJykPyJdIEn9qP6bLxX+2Vqrkam/Doicts=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VhPd2bZnsT1ohHioeAScZSlXy2c2Xe7rPyy+WPvb8HsUJq+GnN3tAWsiZJEIcG6/m vWMDnfObzKnOsMyWNhXqtrPkZ/b1FbdcgDj6VdPtyxp0HjdtGsVLHWBnbrxWttz3df CjdwGG5HpVwFwpwLzdI4Oyn56tMt39xwxW6itI9M= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/48839] #error should terminate compilation - similar to missing #include Date: Thu, 23 Feb 2023 20:45:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 4.6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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=3D48839 --- Comment #13 from Andrew Pinski --- Note C23 has the following under "4. Conformance": The implementation shall not successfully translate a preprocessing transla= tion unit containing a #error preprocessing directive unless it is part of a group skipped by conditional inclusion. GCC does error out when preprocessing seperately from compiling but when do= ing a combined, GCC does "successfully" translate the preprocessing translation= but does not finish compiling though. But maybe that is still valid.=