From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 629813858C62; Mon, 28 Nov 2022 12:03:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 629813858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669637005; bh=KvEUzIhZclYkfnSBcoIozEhuMDLTvFJmkbhyqkE9+/w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Mc4U5myShLJeZDibM2XQI0bXZ5RrIBPndXzdMqfl9jhWpPq6j3eiMjeX4YNpYmivx BIb5N3kRJ5okB05Nulie/1yl/ncMHZUIop0x4kc8Yq537KGTje8K9E6P54tzcxTGNK xmPJOIemG5f7ZADZae0+fC25AxT0q8Hr+gQX4lh0= From: "lukaszcz18 at wp dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107886] Problem witch std::latch, std::binary_semaphores in C++20 Date: Mon, 28 Nov 2022 12:03:25 +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.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lukaszcz18 at wp dot pl X-Bugzilla-Status: WAITING 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107886 --- Comment #11 from Jamaika --- without #define __cpp_lib_atomic_wait 201907L ``` Using built-in specs. COLLECT_GCC=3Dg++.exe Target: x86_64-w64-mingw32 Configured with: /home/ma/m/source/gcc-g/configure --host=3Dx86_64-w64-ming= w32 --target=3Dx86_64-w64-mingw32 --disable-nls --enable-languages=3Dc,c++,objc= ,obj-c++ --with-gmp=3D/home/ma/m/build/for_target --with-mpfr=3D/home/ma/m/build/for= _target --with-mpc=3D/home/ma/m/build/for_target --with-isl=3D/home/ma/m/build/for_= target --enable-twoprocess --disable-libstdcxx-pch --disable-win32-registry --disable-shared --enable-fully-dynamic-string --enable-libssp --prefix=3D/home/ma/m/target --with-sysroot=3D/home/ma/m/target Thread model: win32 Supported LTO compression algorithms: zlib gcc version 13.0.0 20221124 (experimental) (GCC) COLLECT_GCC_OPTIONS=3D'-v' '-std=3Dgnu++20' '-ftree-vectorize' '-D' 'WINVER= =3D0x0602' '-D' '_WIN32_WINNT=3D0x0602' '-g0' '-O3' '-c' '-o' 'latch_windows.o' '-mtune=3Dgeneric' '-march=3Dx86-64' c:/gcc1300/bin/../libexec/gcc/x86_64-w64-mingw32/13.0.0/cc1plus.exe -quiet= -v -iprefix c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/ -U_REENTRANT = -D WINVER=3D0x0602 -D _WIN32_WINNT=3D0x0602 latch_windows.cpp -quiet -dumpbase latch_windows.cpp -dumpbase-ext .cpp -mtune=3Dgeneric -march=3Dx86-64 -g0 -= O3 -std=3Dgnu++20 -version -ftree-vectorize -o C:\Users\KOMPUT~1\AppData\Local\Temp\ccVi63tF.s GNU C++20 (GCC) version 13.0.0 20221124 (experimental) (x86_64-w64-mingw32) compiled by GNU C version 13.0.0 20221124 (experimental), GMP versi= on 6.2.1, MPFR version 4.1.1, MPC version 1.2.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../inc= lude/c++/13.0.0" ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../inc= lude/c++/13.0.0/x86_64-w64-mingw32" ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../inc= lude/c++/13.0.0/backward" ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/include" ignoring nonexistent directory "/home/ma/m/target/home/ma/m/target/lib/gcc/x86_64-w64-mingw32/13.0.0/../..= /../../include" ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/include-fixed" ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../x86= _64-w64-mingw32/include" ignoring nonexistent directory "/home/ma/m/target/mingw/include" #include "..." search starts here: #include <...> search starts here: c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../include/c++= /13.0.0 c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../include/c++= /13.0.0/x86_64-w64-mingw32 c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../include/c++= /13.0.0/backward c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/include c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/include-fixed c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../x86_64-w64-= mingw32/include End of search list. GNU C++20 (GCC) version 13.0.0 20221124 (experimental) (x86_64-w64-mingw32) compiled by GNU C version 13.0.0 20221124 (experimental), GMP versi= on 6.2.1, MPFR version 4.1.1, MPC version 1.2.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 Compiler executable checksum: 2b6c2fb9839dec486c0793745b5cdfdc latch_windows.cpp:9:6: error: 'latch' in namespace 'std' does not name a ty= pe 9 | std::latch workDone(6); | ^~~~~ latch_windows.cpp: In member function 'void Worker::operator()()': latch_windows.cpp:23:9: error: 'workDone' was not declared in this scope 23 | workDone.arrive_and_wait(); // wait until all work is done= =20 (1) | ^~~~~~~~ ```=