From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5D45389365C; Fri, 24 Apr 2020 23:22:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5D45389365C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587770551; bh=i3tZ4iqG5K2txOz1tPkDOENxqJkj/JiIGk1ADLJI/WM=; h=From:To:Subject:Date:From; b=f5z3RmmMh4aduoD4tlKlPn2Wbhj6aQVXz16GdzvrtIposidIMwJ1cxrh5vNPzu6Kd VvC3AdVaFb1MrefniVM11z3fSwRvKdqm1GTwNcBDSiPDiBSYSb3f1Lh3zfbCHTWG5D gYH6cBY39btkJVo5mnGEGKnhSl04P4WTIdWlAEiY= From: "r_new at rambler dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/94753] New: -undef, c++20 and feature-test macros Date: Fri, 24 Apr 2020 23:22:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: r_new at rambler dot ru 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Fri, 24 Apr 2020 23:22:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94753 Bug ID: 94753 Summary: -undef, c++20 and feature-test macros Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: r_new at rambler dot ru Target Milestone: --- In c++20 feature-test macros (_=C2=AD_=C2=ADcpp_=C2=ADattributes, _=C2=AD_= =C2=ADcpp_=C2=ADconstexpr, ...) are standard predefined macros, must be predefined even with -undef. g++ -undef -std=3Dc++2a -E -dM -x c++ - < /dev/null=20 #define __STDC_HOSTED__ 1 #define __STDC_IEC_559__ 1 #define __STDC_ISO_10646__ 201706L #define __STDC_UTF_16__ 1 #define __cplusplus 201709L #define _STDC_PREDEF_H 1 #define __STDC_IEC_559_COMPLEX__ 1 #define __STDC_UTF_32__ 1 #define __STDC__ 1 #define _GNU_SOURCE 1 gcc version 10.0.1 20200423 (experimental) (Compiler-Explorer-Build) and gcc version 9.3.0 (Arch Linux 9.3.0-1)=