From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F39893858C66; Fri, 1 Mar 2024 22:15:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F39893858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709331324; bh=U28tirSL4VIKR0cbf3qgsXykyhO4zP82WsigcdUatGY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QAd7aQ4sx6zWylguaVjcdEzw+FiW/PdGCnoLaz9ISt1kQMtYNa+3ojbzpf9GTPQ2V P8M8UlanCC8UNFf3uJTXXP1LoI1X3pZimusxhmNSu7Ka5YV/nb3769PTHOFrzFt/7i QYQ4OQ8KnSFoNxC08Uz3vBiKGT2tkAVSrerTuU+g= From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/114103] FAIL: 29_atomics/atomic/lock_free_aliases.cc -std=gnu++20 (test for excess errors) Date: Fri, 01 Mar 2024 22:15:22 +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: 14.0 X-Bugzilla-Keywords: patch, testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 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=3D114103 --- Comment #11 from dave.anglin at bell dot net --- On 2024-02-29 12:44 p.m., redi at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114103 > > --- Comment #10 from Jonathan Wakely --- > This additional change should fix that: > > --- a/libstdc++-v3/src/c++20/tzdb.cc > +++ b/libstdc++-v3/src/c++20/tzdb.cc > @@ -643,6 +643,7 @@ namespace std::chrono > void unlock() { infos_mutex.unlock(); } > }; > > +#if __cpp_lib_atomic_lock_free_type_aliases > #if defined __GTHREADS && __cpp_lib_atomic_wait > // Atomic count of unexpanded ZoneInfo objects in the infos vector. > // Concurrent access is allowed when all objects have been expanded. > @@ -704,6 +705,7 @@ namespace std::chrono > #endif // __GTHREADS && __cpp_lib_atomic_wait > > RulesCounter rules_counter; > +#endif // __cpp_lib_atomic_lock_free_type_aliases > #else // TZDB_DISABLED > _Impl(weak_ptr) { } > struct { Now we get: libtool: compile:=C2=A0 /home/dave/gnu/gcc/objdir64/./gcc/xgcc -shared-libg= cc -B/home/dave/gnu/gcc/objdir64/./gcc -nostdinc++=20 -L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/src -L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs=20 -L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/libsupc++/.l= ibs -B/opt/gnu64/gcc/gcc-14/hppa64-hp-hpux11.11/bin/=20 -B/opt/gnu64/gcc/gcc-14/hppa64-hp-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-14/hppa64-hp-hpux11.11/include -isystem=20 /opt/gnu64/gcc/gcc-14/hppa64-hp-hpux11.11/sys-include -fno-checking -I/home/dave/gnu/gcc/gcc/libstdc++-v3/../libgcc=20 -I/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/hppa= 64-hp-hpux11.11=20 -I/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -std=3Dgnu++20=20 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-location=3Donce -ffunction-section= s=20 -fdata-sections -frandom-seed=3Dtzdb.lo -fimplicit-templates -O2 -g -I. -c ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc=C2=A0 -DPIC=20 -D_GLIBCXX_SHARED -o tzdb.o ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc: In member function 'std::chrono::sys_info=20 std::chrono::time_zone::_M_get_sys_info(std::chrono::sys_seconds) const': ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:781:30: error: 'struct std::chrono::time_zone::_Impl' has no member named 'rules_counter'; did=20 you mean 'RulesCounter'? =C2=A0 781 |=C2=A0=C2=A0=C2=A0=C2=A0 lock_guard lock(_M_impl->rules_counte= r); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RulesCounter ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:971:18: error: 'struct std::chrono::time_zone::_Impl' has no member named 'rules_counter'; did=20 you mean 'RulesCounter'? =C2=A0 971 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 _M_impl->rule= s_counter.decrement(); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RulesCounter ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc: In function 'const std::chrono::tzdb& std::chrono::reload_tzdb()': ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:1490:24: error: 'struct std::chrono::time_zone::_Impl' has no member named 'rules_counter';=20 did you mean 'RulesCounter'? =C2=A01490 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 impl.rules_counter.increme= nt(); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 RulesCounter=