From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B94C1385700C; Sun, 20 Sep 2020 20:10:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B94C1385700C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600632643; bh=wjua2JOUyR/Zb5RwdTHvyZcjJZxyuoe79KBALKVNtN0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TOl6BZOTjSzIAAYw/u/NmN9QfMh9cB4OtQbhZCLkDBt2s8kmDxVkBNrhZDp6Az8xP aLmrKyCraoV5r0Ke4NJezifLU5qKlqJF85SS8nPnvW0TuMVHb2fwCXHVjxrblJsg5H SsULtu68svLullBoX5lKxUewtycg2EMsJzT7qRsk= 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 20:10:43 +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 20:10:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97044 --- Comment #1 from Jonathan Wakely --- The C99 standard says that __STDC_FORMATE_MACROS must be defined before including the header. The C++11 standard is clear that __STDC_FORMAT_MACROS= has no effect in C++ programs, and the header must defined the format macros unconditionally. AIX apparently follows the C99 rule, even though obviously= the C++ standard defines how C++ works, not C. This is a bug in the AIX headers.=