From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EEF423858D37; Wed, 28 Feb 2024 01:04:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EEF423858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709082271; bh=HSDbeTA46cIMuRpaqe208brYBHnUnl1r1yl0XGlRISw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OJukXPieMM4/0yfzUNH61w2wQL9zsIr5/U7rWp5Qjln33SSGcs6dFhEwMxFcni8qb gBuhlvQwrYyYDEZkLDUyIO1nzkBc7E6geffrPzJ6hduFzMWQ4aSEtifJO3/BB1Rv/h nYicFcmugaiTEeAoQ1LraX4NZcT/3swDp9iUhM44= 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: Wed, 28 Feb 2024 01:04:26 +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: NEW 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=3D114103 --- Comment #9 from dave.anglin at bell dot net --- On 2024-02-27 9:32 a.m., redi at gcc dot gnu.org wrote: > Patch posted: > https://gcc.gnu.org/pipermail/gcc-patches/2024-February/646619.html Caused build error: libtool: compile:=C2=A0 /home/dave/gnu/gcc/objdir64/./gcc/xgcc -shared-libg= cc -B/home /dave/gnu/gcc/objdir64/./gcc -nostdinc++ -L/home/dave/gnu/gcc/objdir64/hppa64-hp -hpux11.11/libstdc++-v3/src -L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/li bstdc++-v3/src/.libs -L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++ -v3/libsupc++/.libs -B/opt/gnu64/gcc/gcc-14/hppa64-hp-hpux11.11/bin/ -B/opt/gnu6 4/gcc/gcc-14/hppa64-hp-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-14/hppa64-hp-h pux11.11/include -isystem /opt/gnu64/gcc/gcc-14/hppa64-hp-hpux11.11/sys-inc= lude -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:654:9: error: 'atomic_signed_lock_free' does not name a type =C2=A0 654 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 atomic_signed= _lock_free counter{0}; =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 ^~~~~~~~~~~~~~~~~~~~~~~ ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:706:18: error: 'atomic_signed_lock_free' was not declared in this scope; did you mean=20 'atomic_is_lock_free'? =C2=A0 706 |=C2=A0=C2=A0=C2=A0=C2=A0 RulesCounter= rules_counter; =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 atomic_is_lock= _free ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:706:41: error: template argument 1 is invalid =C2=A0 706 |=C2=A0=C2=A0=C2=A0=C2=A0 RulesCounter= rules_counter; =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 ^ ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc: In member function 'void std::chrono::time_zone::_Impl::RulesCounter<_Tp>::increment()': ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:658:11: error: 'counter' = was not declared in this scope; did you mean 'count'? =C2=A0 658 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 { counter.fet= ch_add(1, memory_order::relaxed); } =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 count ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc: In member function 'void std::chrono::time_zone::_Impl::RulesCounter<_Tp>::decrement()': ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:668:17: error: 'counter' = was not declared in this scope; did you mean 'count'? =C2=A0 668 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 i= f (++counter =3D=3D 0) =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 count ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc: In member function 'void std::chrono::time_zone::_Impl::RulesCounter<_Tp>::lock()': ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:679:25: error: 'counter' = was not declared in this scope; did you mean 'count'? =C2=A0 679 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 f= or (auto c =3D counter.load(memory_order::relaxed); c !=3D 0;) =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 count ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc: In member function 'void std::chrono::time_zone::_Impl::RulesCounter<_Tp>::unlock()': ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:697:24: error: 'counter' = was not declared in this scope; did you mean 'count'? =C2=A0 697 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 i= f (auto c =3D counter.load(memory_order::relaxed); c < 0) =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 count ../../../../../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:969:32: error: request for member 'decrement' in '((const=20 std::chrono::time_zone*)this)->std::chrono::time_zone::_M_impl.std::unique_= ptr::operator->()->std::chrono::time_zone::_= Impl::rules_counter',=20 which is of non-class type 'int' =C2=A0 969 |=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 ^~~~~= ~~~~ ../../../../../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:1488:38: error: request f= or member 'increment' in=20 'impl.std::chrono::time_zone::_Impl::rules_counter', which is of non-class = type 'int' =C2=A01488 |=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 ^~~~~~~~~ In file included from /home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/a= tomic_wait.h:51, =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 from /home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/a= tomic_base.h:42, =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 from /home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/atomic= :50, =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 from ../../../../../gcc/libstdc++-v3/src/c++20/tzd= b.cc:35: /home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/s= td_mutex.h: In instantiation of=20 'std::lock_guard<_Mutex>::lock_guard(mutex_type&) [with _Mutex =3D int; mutex_type =3D int]': ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:779:43:=C2=A0=C2=A0 requi= red from here ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:1488:38: error: 779 |=C2= =A0=C2=A0=C2=A0=C2=A0 lock_guard lock(_M_impl->rules_counter); ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:1488:38: error:=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 ^ /home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/s= td_mutex.h:250:19: error: request for member 'lock' in=20 '((std::lock_guard*)this)->std::lock_guard::_M_device', which is = of non-class type 'std::lock_guard::mutex_type' {aka 'int'} =C2=A0 250 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 { _M_device.lock(); } =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 ~~~~~~~~~~^~~~ /home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/s= td_mutex.h: In instantiation of=20 'std::lock_guard<_Mutex>::~lock_guard() [with _Mutex =3D int]': ../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc:779:43:=C2=A0=C2=A0 requi= red from here /home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/s= td_mutex.h:250:19: error:=C2=A0=C2=A0 779 |=C2=A0=C2=A0=C2=A0=C2=A0 lock_guard=20 lock(_M_impl->rules_counter); /home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/s= td_mutex.h:250:19: error:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20 |=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 ^ /home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/s= td_mutex.h:257:19: error: request for member 'unlock' in=20 '((std::lock_guard*)this)->std::lock_guard::_M_device', which is = of non-class type 'std::lock_guard::mutex_type' {aka 'int'} =C2=A0 257 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 { _M_device.unlock(); } =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 ~~~~~~~~~~^~~~~~ make[6]: *** [Makefile:754: tzdb.lo] Error 1=