From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 188AD3858C62; Fri, 1 Dec 2023 13:21:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 188AD3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701436900; bh=lMdHqsR12QFjPKydRaUYARcqmaY4n7QVgiFE2wZ05lo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=m5XmqRNUfK7CXgQNdjyTYiwCUqP6TIqfBEsmHLLZZ5BGf13iV8AGQw13JJ3U9XhfW cVOfeli9I2Ze5wwR92EAfuABDllOV2Qr8oFY+8tpdLEviAZPlIvmRK6tea0HOCrYUR /tb/jl7qWAXljl3jreYKdX+YlWbDbmWaYsGWzZX8= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/112796] header implicitly includes Date: Fri, 01 Dec 2023 13:21:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX 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: bug_status resolution 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=3D112796 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #1 from Jonathan Wakely --- This is not a bug in GCC, the C++ standard allows any header to include any other. The bug is in your code, and we can't generally diagnose it. It's simply not possible to implement without at least some of = the concepts defined in , because the algos are specified in terms of those concepts. Similarly, nearly every header includes the header. While it would be nice if we didn't expose all of for any program that doesn't include it explicitly, that's just not practical, sorry.=