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

            Bug ID: 119089
           Summary: FAIL:
                    23_containers/vector/debug/assign4_backtrace_neg.cc
                    -std=gnu++17 (test for excess errors)
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---

spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/./gcc/xg++ -shared-libgcc
-B/home
/dave/gnu/gcc/objdir/./gcc -nostdinc++
-L/home/dave/gnu/gcc/objdir/hppa-linux-gn
u/libstdc++-v3/src
-L/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/src/.
libs -L/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/
home/dave/opt/gnu/gcc/gcc-15/hppa-linux-gnu/bin/
-B/home/dave/opt/gnu/gcc/gcc-15
/hppa-linux-gnu/lib/ -isystem
/home/dave/opt/gnu/gcc/gcc-15/hppa-linux-gnu/inclu
de -isystem /home/dave/opt/gnu/gcc/gcc-15/hppa-linux-gnu/sys-include
-fchecking=
1 -B/home/dave/gnu/gcc/objdir/hppa-linux-gnu/./libstdc++-v3/src/.libs
-fmessage-
length=0 -fno-show-column -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOUR
CE -DLOCALEDIR="." -nostdinc++
-I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstd
c++-v3/include/hppa-linux-gnu
-I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc
++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/home/dave/gnu/g
cc/gcc/libstdc++-v3/include/backward
-I/home/dave/gnu/gcc/gcc/libstdc++-v3/tests
uite/util
/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/23_containers/vector/deb
ug/assign4_backtrace_neg.cc -std=gnu++17 -D_GLIBCXX_DEBUG_BACKTRACE -lstdc++exp
-fdiagnostics-plain-output ./libtestc++.a -Wl,--gc-sections
-L/home/dave/gnu/gcc
/objdir/hppa-linux-gnu/libstdc++-v3/src/filesystem/.libs
-L/home/dave/gnu/gcc/ob
jdir/hppa-linux-gnu/libstdc++-v3/src/experimental/.libs -lm -o
./assign4_backtra
ce_neg.exe
In file included from
/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/incl
ude/hppa-linux-gnu/bits/gthr-default.h:35,
                 from
/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/incl
ude/hppa-linux-gnu/bits/gthr.h:157,
                 from
/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/incl
ude/ext/concurrence.h:37,
                 from
/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/incl
ude/debug/safe_base.h:32,
                 from
/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/incl
ude/debug/safe_sequence.h:35,
                 from
/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/incl
ude/debug/vector:42,
                 from
/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/23_container
s/vector/debug/assign4_backtrace_neg.cc:5:
/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu/bit
s/gthr-default.h:90: error: cannot convert '<brace-enclosed initializer list>'
t
o 'unsigned int' in initialization
/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/ext/concurrence.h:
257: note: in expansion of macro '__GTHREAD_COND_INIT'
compiler exited with status 1
FAIL: 23_containers/vector/debug/assign4_backtrace_neg.cc  -std=gnu++17 (test
for excess errors)
Excess errors:
/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu/bits/gthr-default.h:90:
error: cannot convert '<brace-enclosed initializer list>' to 'unsigned int' in
initialization

There are a lot of similar errors.
spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/xgcc
-B/home/dave/gnu/gcc/objdir/gcc/
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-2.c
-fdiagnostics-plain-output -Wextra -Wall -ansi -S -o pthread-init-2.s
In file included from
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-2.c:17:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h: In function
'foo':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:3:
warning: braces around scalar initializer
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:3: note:
(near initialization for 'pcond.__data.__g1_orig_size')
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:33:
warning: excess elements in scalar initializer
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:33: note:
(near initialization for 'pcond.__data.__g1_orig_size')
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:3:
warning: braces around scalar initializer
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:3: note:
(near initialization for 'pcond.__data.__g_signals[1]')
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:33:
warning: excess elements in scalar initializer
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:33: note:
(near initialization for 'pcond.__data.__g_signals[1]')
FAIL: gcc.dg/pthread-init-2.c (test for excess errors)
Excess errors:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:3:
warning: braces around scalar initializer
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:33:
warning: excess elements in scalar initializer
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:3:
warning: braces around scalar initializer
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pthread-init-common.h:27:33:
warning: excess elements in scalar initializer

thread-init-common.h:27
pthread_cond_t pcond UNUSED = PTHREAD_COND_INITIALIZER;

In pthread.h:
/* Conditional variable handling.  */
#define PTHREAD_COND_INITIALIZER { { {0}, {0}, {0, 0}, 0, 0, {0, 0} } }

Revision r15-7679-gbf0aa9dc882 was okay.

Reply via email to