From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD5C23858D1E; Fri, 23 Dec 2022 13:37:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD5C23858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671802638; bh=ZmV5IfJOIdkkgMbLXXD0kwkirxJPWPlu35wepQhBCMA=; h=From:To:Subject:Date:From; b=nZIuBMdl3BYgj/1bmzTC+E0jh8/FAIcaADeDOlgIva38DXr+pMM854y4N/Nb0dKmA i8HT3qyaF+2n2+YGHbOA12a81b4XyvdZldlHuK3esTOjyB0lA6YLApBnxINOTG6CXr /++j6Ti0it8WvFLFhJNwMnfvjtZT9bC0ea5BEU8M= From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108210] New: error: 'mutex' does not name a type; did you mean 'minutes'? for x86_64-w64-mingw32 target with win32 thread model Date: Fri, 23 Dec 2022 13:37:07 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108210 Bug ID: 108210 Summary: error: 'mutex' does not name a type; did you mean 'minutes'? for x86_64-w64-mingw32 target with win32 thread model Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- /home/cqwrteur/toolchains_build/gcc/libstdc++-v3/src/c++20/tzdb.cc:565:5: error: 'mutex' does not name a type; did you mean 'minutes'? 565 | mutex infos_mutex; | ^~~~~ | minutes Win32 thread model does not provide mutex, lock_guard, and other threading mechanism. However. this can be implemented easily with win32 CriticalSection API. https://github.com/cppfastio/fast_io/blob/master/include/fast_io_hosted/thr= eads/mutex/win32_critical_section.h=