https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116210
Bug ID: 116210
Summary: 17_intro/names.cc test fails
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
Target Milestone: ---
Created attachment 58809
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58809&action=edit
log.txt
I assume this is a glibc-2.40 thing?
```
spawn -ignore SIGHUP
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/./gcc/xg++ -shared-libgcc
-B/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/./gcc -nostdinc++
-L/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include
-B/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/./libstdc++-v3/src/.libs
-fmessage-length=0 -fno-show-column -ffunction-sections -fdata-sections -g -O2
-O3 -march=native -mtls-dialect=gnu2 -fno-semantic-interposition -pipe
-fcf-protection=none -fdiagnostics-color=always -fdiagnostics-urls=never
-Wa,-O2 -Wa,-mtune=znver2 -Wstrict-aliasing -Wfree-nonheap-object
-Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -ggdb3
-fno-harden-control-flow-redundancy -fno-harden-control-flow-redundancy
-D_GNU_SOURCE -DLOCALEDIR="." -nostdinc++
-I/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include
-I/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/libstdc++-v3/libsupc++
-I/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/libstdc++-v3/include/backward
-I/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/libstdc++-v3/testsuite/util
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/libstdc++-v3/testsuite/17_intro/names.cc
-std=gnu++17 -D__GLIBCXX__=99999999 -fdiagnostics-plain-output -S -o names.s
/usr/include/bits/stdlib.h: In function 'char* realpath(const char*, char*)':
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/libstdc++-v3/testsuite/17_intro/names.cc:120:
error: expected primary-expression before '(' token
In file included from /usr/include/stdlib.h:1159,
from
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdlib:79,
from
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/stdc++.h:42,
from
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/libstdc++-v3/testsuite/17_intro/names.cc:378:
/usr/include/bits/stdlib.h:46: error: expected primary-expression before '='
token
/usr/include/bits/stdlib.h:48: error: expected primary-expression before '=='
token
/usr/include/bits/stdlib.h:52: error: expected primary-expression before 'if'
/usr/include/bits/stdlib.h:49: error: expected ')' before 'if'
/usr/include/bits/stdlib.h:48: note: to match this '('
/usr/include/bits/stdlib.h:55: error: expected primary-expression before ')'
token
/usr/include/bits/wchar2.h: In function 'wchar_t* wcscpy(wchar_t*, const
wchar_t*)':
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/libstdc++-v3/testsuite/17_intro/names.cc:120:
error: expected primary-expression before '(' token
In file included from /usr/include/wchar.h:1070,
from
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cwchar:44,
from
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/postypes.h:40,
from
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:42,
from
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/string:42,
from
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bitset:52,
from
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/stdc++.h:52:
/usr/include/bits/wchar2.h:77: error: expected primary-expression before '='
token
/usr/include/bits/wchar2.h:78: error: expected primary-expression before '!='
token
/usr/include/bits/wchar2.h:78: error: expected ')' before 'return'
/usr/include/bits/wchar2.h: In function 'wchar_t* wcpcpy(wchar_t*, const
wchar_t*)':
[...]
```