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

            Bug ID: 121283
           Summary: experimental/names.cc FAILs with >=glibc-2.42 and
                    _FORTIFY_SOURCE=3
           Product: gcc
           Version: 16.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: ---

```
spawn -ignore SIGHUP
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/./gcc/xg++ -shared-libgcc
-B/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/./gcc -nostdinc++
-L/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/var/tmp/portage/sys-devel/gcc-16.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-16.0.9999/work/build/x86_64-pc-linux-gnu/./libstdc++-v3/src/.libs
-fmessage-length=0 -fno-show-column -ffunction-sections -fdata-sections
-Wno-format-security -Wno-format -Wno-trampolines -Wno-complain-wrong-lang
-fno-stack-clash-protection -g -O2 -DLOCALEDIR="." -nostdinc++
-I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include
-I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/libsupc++
-I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/include/backward
-I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/testsuite/util
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/testsuite/experimental/names.cc
-Wno-format-security -Wno-format -Wno-trampolines -Wno-complain-wrong-lang
-fno-stack-clash-protection -std=gnu++17 -D__GLIBCXX__=99999999
-fdiagnostics-plain-output -Wabi=20 -S -o names.s
In file included from /usr/include/arpa/inet.h:106,
                 from
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/experimental/internet:57,
                 from
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/testsuite/experimental/names.cc:71:
/usr/include/bits/inet-fortified.h:61: error: unterminated argument list
invoking macro '__glibc_safe_or_unknown_len'
In file included from
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/testsuite/experimental/names.cc:24:
/usr/include/bits/inet-fortified.h: In function 'int inet_pton(int, const
char*, void*)':
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/testsuite/experimental/../17_intro/names.cc:122:
error: expected primary-expression before '(' token
/usr/include/bits/inet-fortified.h:48: error: expected primary-expression
before '=' token
/usr/include/bits/inet-fortified.h:50: error: expected primary-expression
before '=' token
/usr/include/bits/inet-fortified.h:50: error: expected ')' before ';' token
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/testsuite/experimental/../17_intro/names.cc:122:
note: to match this '('
/usr/include/bits/inet-fortified.h:52: error: expected primary-expression
before '=' token
/usr/include/bits/inet-fortified.h:52: error: expected ')' before ';' token
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/testsuite/experimental/../17_intro/names.cc:122:
note: to match this '('
In file included from /usr/include/features.h:524,
                 from
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/testsuite/experimental/../17_intro/names.cc:303:
/usr/include/bits/inet-fortified.h:56: error: '__glibc_safe_or_unknown_len' was
not declared in this scope
/usr/include/arpa/inet.h:109: error: expected ')' before '}' token
/usr/include/bits/inet-fortified.h:56: note: to match this '('
/usr/include/arpa/inet.h:109: error: expected ';' before '}' token
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/experimental/internet:
At global scope:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/experimental/internet:150:
error: template with C linkage
/usr/include/arpa/inet.h:30: note: 'extern "C"' linkage started here
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/experimental/internet:183:
error: template with C linkage
/usr/include/arpa/inet.h:30: note: 'extern "C"' linkage started here
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/experimental/internet:253:
error: template with C linkage
/usr/include/arpa/inet.h:30: note: 'extern "C"' linkage started here
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/experimental/internet:291:
error: template with C linkage
/usr/include/arpa/inet.h:30: note: 'extern "C"' linkage started here
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/experimental/internet:329:
error: template with C linkage
/usr/include/arpa/inet.h:30: note: 'extern "C"' linkage started here
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/experimental/internet:414:
error: template with C linkage
/usr/include/arpa/inet.h:30: note: 'extern "C"' linkage started here
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/experimental/internet:460:
error: template with C linkage
/usr/include/arpa/inet.h:30: note: 'extern "C"' linkage started here
[...]
```

Reply via email to