From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D61A5384F4A3; Mon, 21 Nov 2022 21:52:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D61A5384F4A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669067571; bh=NKZSynVE0Tyh+3CHLppj/h8Sn3faxhEAMyKGlpDyc4Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cinO9A0qHFDv0LLS9H5lctXejNBwtmf9g2Lmku57nvvoEovvgqNT5f2usIXNXWboe 1hPhlEh6H8b/yfafNcff/obmsaFfEfXmh0pH44MUttDp8Oh2/MXKZ9FAK0dgsTSmsM FP6XqVBZJ48JU0eW77SRObncOTDmmaaeQjeC9nH8= From: "ldionne.2 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/107795] recursion through breaks non-GNU implementations of the C++ stdlib Date: Mon, 21 Nov 2022 21:52:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ldionne.2 at gmail dot com 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: 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=3D107795 --- Comment #11 from Louis Dionne --- (In reply to Andrew Pinski from comment #9) >=20 > GCC version specific includes > GCC version specific fixincludes > C libr= ary > includes >=20 > That is for C. > C++ is: > libstdc++ library includes > ... (rest same as C). Okay, that's great. That's exactly what I want! I want to be able to do: libc++ library includes > ... (rest same as C) What I'm trying to say is precisely that this doesn't work as intended toda= y, because somewhere inside "rest same as C", a header is taking for granted t= hat libstdc++ does NOT implement a header. If it did, then libstdc++ would get the same issue that we are having. Is there a reason why GCC needs to indirect through and recursively include , telling it to recurse using _GCC_NEXT_LIMIT= S_H?=