https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116992

            Bug ID: 116992
           Summary: FAIL: 30_threads/semaphore/platform_try_acquire_for.cc
                     -std=gnu++20 (test for excess errors)
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa64-hp-hpux11.11
            Target: hppa64-hp-hpux11.11
             Build: hppa64-hp-hpux11.11

spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir64/./gcc/xg++ -shared-libgcc
-B/ho
me/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/
libstdc++-v3/src/.libs
-L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc
++-v3/libsupc++/.libs -B/opt/gnu64/gcc/gcc-15/hppa64-hp-hpux11.11/bin/
-B/opt/gn
u64/gcc/gcc-15/hppa64-hp-hpux11.11/lib/ -isystem
/opt/gnu64/gcc/gcc-15/hppa64-hp
-hpux11.11/include -isystem
/opt/gnu64/gcc/gcc-15/hppa64-hp-hpux11.11/sys-includ
e -fchecking=1
-B/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/./libstdc++-v3/
src/.libs -fmessage-length=0 -fno-show-column -ffunction-sections
-fdata-section
s -O2 -g -DLOCALEDIR="." -nostdinc++
-I/home/dave/gnu/gcc/objdir64/hppa64-hp-hpu
x11.11/libstdc++-v3/include/hppa64-hp-hpux11.11
-I/home/dave/gnu/gcc/objdir64/hp
pa64-hp-hpux11.11/libstdc++-v3/include
-I/home/dave/gnu/gcc/gcc/libstdc++-v3/lib
supc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward
-I/home/dave/gnu/g
cc/gcc/libstdc++-v3/testsuite/util
/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite
/30_threads/semaphore/platform_try_acquire_for.cc -std=gnu++20
-D_GLIBCXX_USE_PO
SIX_SEMAPHORE -pthread
-B/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/./libat
omic/ -B/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/./libatomic/.libs
-latom
ic -fdiagnostics-plain-output ./libtestc++.a
-L/home/dave/gnu/gcc/objdir64/hppa6
4-hp-hpux11.11/libstdc++-v3/src/experimental/.libs -lm -o
./platform_try_acquire
_for.exe
In file included from
/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/30_threads/s
emaphore/try_acquire_for.cc:23,
                 from
/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/30_threads/s
emaphore/platform_try_acquire_for.cc:7:
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:4
9: error: '__semaphore_impl' has not been declared
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:5
3: error: '__semaphore_impl' has not been declared [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:5
5: error: '__semaphore_impl' does not name a type [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:7
2: error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:7
6: error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:8
0: error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:
In constructor
'std::counting_semaphore<__least_max_value>::counting_semaphore(s
td::ptrdiff_t)':
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:5
9: error: class 'std::counting_semaphore<__least_max_value>' does not have any
f
ield named '_M_sem' [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:
In member function 'void
std::counting_semaphore<__least_max_value>::release(std
::ptrdiff_t)':
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:7
3: error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:
In member function 'void
std::counting_semaphore<__least_max_value>::acquire()':
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:7
7: error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:
In member function 'bool
std::counting_semaphore<__least_max_value>::try_acquire
()':
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:8
1: error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:
In member function 'bool
std::counting_semaphore<__least_max_value>::try_acquire
_for(const std::chrono::duration<_Rep, _Period>&)':
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:8
6: error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:
In member function 'bool
std::counting_semaphore<__least_max_value>::try_acquire
_until(const std::chrono::time_point<_Clock, _Dur>&)':
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:91:
error: '_M_sem' was not declared in this scope [-Wtemplate-body]
compiler exited with status 1
FAIL: 30_threads/semaphore/platform_try_acquire_for.cc  -std=gnu++20 (test for
excess errors)
Excess errors:
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:49:
error: '__semaphore_impl' has not been declared
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:53:
error: '__semaphore_impl' has not been declared [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:55:
error: '__semaphore_impl' does not name a type [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:72:
error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:76:
error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:80:
error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:59:
error: class 'std::counting_semaphore<__least_max_value>' does not have any
field named '_M_sem' [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:73:
error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:77:
error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:81:
error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:86:
error: '_M_sem' was not declared in this scope [-Wtemplate-body]
/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/semaphore:91:
error: '_M_sem' was not declared in this scope [-Wtemplate-body]

Similar fail:
FAIL: 30_threads/semaphore/platform_try_acquire_for.cc  -std=gnu++26 (test for
excess errors)

Reply via email to