From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BE8073858CDA; Sun, 11 Feb 2024 10:28:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE8073858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707647282; bh=4W5g6ungzVrFHh2svSKxA/R/JmZ0+exacP6QrFTxbxE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=m6nIyXyz5WMQ/TliJWmofWM2RKa/8iqkylD/RyOuOEOoBU1DiAaBi4UpLTejF6kEZ PzCtI/pIuIB6/BEigE+y3olrfBvLIvwxyJD1kdo0j3Wbh8G+PQoCBGfV2C518SWIZ5 ulV7pbaZaTzL4mLJVE/nBESvT03t/McizFjgN2AI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/113873] false warning about #pragma once Date: Sun, 11 Feb 2024 10:28:02 +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: 12.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: keywords component 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=3D113873 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Component|c++ |preprocessor --- Comment #2 from Andrew Pinski --- Can you provide an exact commands you used to compile? Main here is pointing to the main source file that is being compiled. Maybe the warning could be slightly clearer but it is basically saying you can't use it outside of a header file that is being `#include`d.=