From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 439D13857004; Tue, 18 Jul 2023 11:00:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 439D13857004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689678039; bh=tlTRfzdIQMPELxlEoG30WOBRiie+NdXM16Q6xW0p4yI=; h=From:To:Subject:Date:From; b=apHB2DwqZCXacbCvuY7XouLFKRaVwLRwz/VinI496Fy77biHlGF2MCjeZ+M7v8jI6 wTqWpy/Vx7OSpD9gPNU3qHBas3JRqw9CCssKeLUsW+ogrA+2k19kbxhFGp6JRrrrHh 5r2UduBl3LfB32EIC0/VJwrJ7bojQqFUhHROPeYg= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-7575] libstdc++: Fix synopsis test X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-13 X-Git-Oldrev: c17539d71b287fd3b7cd781af1f1dffabef659ee X-Git-Newrev: d2c737c40c7c5835f744df1da04fd975d934ab5b Message-Id: <20230718110039.439D13857004@sourceware.org> Date: Tue, 18 Jul 2023 11:00:39 +0000 (GMT) List-Id: https://gcc.gnu.org/g:d2c737c40c7c5835f744df1da04fd975d934ab5b commit r13-7575-gd2c737c40c7c5835f744df1da04fd975d934ab5b Author: Jonathan Wakely Date: Mon Jul 3 19:33:18 2023 +0100 libstdc++: Fix synopsis test The header is only supported for the cxx11 ABI. The declarations of basic_syncbuf, basic_osyncstream, syncbuf and osyncstream were already correctly guarded by a check for _GLIBCXX_USE_CXX11_ABI, but the wsyncbuf and wosyncstream declarations were not. libstdc++-v3/ChangeLog: * testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and wosyncstream depend on _GLIBCXX_USE_CXX11_ABI. (cherry picked from commit f9f05e483984bf89fec7778aaa55ece8ba2a86bb) Diff: --- libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc b/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc index b6d3fa7a719..12f47ae8133 100644 --- a/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc +++ b/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc @@ -115,7 +115,7 @@ _GLIBCXX_END_NAMESPACE_CXX11 typedef basic_ofstream wofstream; typedef basic_fstream wfstream; -#if __cplusplus >= 202002L +#if __cplusplus >= 202002L && _GLIBCXX_USE_CXX11_ABI typedef basic_syncbuf wsyncbuf; typedef basic_osyncstream wosyncstream; #endif