From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D2ED73857C61; Sun, 20 Sep 2020 22:18:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2ED73857C61 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600640312; bh=zPDSweGbXd25nzYZXXDQGLokhK6x8xb6NljtY4VsQDQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hg+nNXAzAUEWV9ttuPwT5L5NmSGfIWZD0FDQCRZCq+MLNLRjxxDhlp/lt+8VSLhk/ EZ4MLp9fXQpmFDARvOCzUtWsvhnzDpvZxn5jo6D6m+y1nc8HWP7ULDosVD4wJJ0ELk h4WbOIPRJLXSJs5KTnPlTni6pLJGSAvmINFXT+54= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/97044] Undefined format macros because of include order on AIX Date: Sun, 20 Sep 2020 22:18:32 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2020 22:18:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97044 --- Comment #2 from Jonathan Wakely --- Specifically, C99 7.8.1 footnote 182 says: "C++ implementations should define these macros only when _ _STDC_FORMAT_MA= CROS is defined before is included." The footnote is not present in C11. C++11 27.9.2 p3 says: "Note: The macros defined by are provided unconditionally. In particular, the symbol __STDC_FORMAT_MACROS, mentioned in footnote 182 of t= he C standard, plays no role in C++." So requiring the macro to be defined by C++ programs before including is an anachronism that is not compatible with any version of t= he C++ standard.=