From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6700F3857036; Wed, 16 Dec 2020 12:25:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6700F3857036 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/98319] New: LFTS headers give errors if included as C++11 or C++98 Date: Wed, 16 Dec 2020 12:25:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 10.2.1 X-Bugzilla-Keywords: rejects-valid 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: bug_id short_desc product version bug_status keywords 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: Wed, 16 Dec 2020 12:25:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98319 Bug ID: 98319 Summary: LFTS headers give errors if included as C++11 or C++98 Product: gcc Version: 10.2.1 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- For example: /home/jwakely/gcc/11/include/c++/11.0.0/experimental/source_location: In st= atic member function =E2=80=98static constexpr std::experimental::fundamentals_v2::source_location std::experimental::fundamentals_v2::source_location::current(const char*, c= onst char*, int, int)=E2=80=99: /home/jwakely/gcc/11/include/c++/11.0.0/experimental/source_location:63:5: error: body of =E2=80=98constexpr=E2=80=99 function =E2=80=98static constex= pr std::experimental::fundamentals_v2::source_location std::experimental::fundamentals_v2::source_location::current(const char*, c= onst char*, int, int)=E2=80=99 not a return-statement It should be possible to include them and then test the feature test macro = to see if they are usable.=