https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99270
Bug ID: 99270 Summary: Testsuite 27_io/headers/cstdio/types_std.cc failure on DragonFly Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Testsuite on x86_64-*-dragonfly gives: Running target unix FAIL: 27_io/headers/cstdio/types_std.cc (test for excess errors) spawn -ignore SIGHUP /build/trunk/./gcc/xg++ -shared-libgcc -B/build/trunk/./gcc -nostdinc++ -L/build/trunk/x86_64-unknown-dragonfly5.9/libstdc++-v3/src -L/build/trunk/x86_64-unknown-dragonfly5.9/libstdc++-v3/src/.libs -L/build/trunk/x86_64-unknown-dragonfly5.9/libstdc++-v3/libsupc++/.libs -B/opt/gcc11f/x86_64-unknown-dragonfly5.9/bin/ -B/opt/gcc11f/x86_64-unknown-dragonfly5.9/lib/ -isystem /opt/gcc11f/x86_64-unknown-dragonfly5.9/include -isystem /opt/gcc11f/x86_64-unknown-dragonfly5.9/sys-include -fchecking=1 -B/build/trunk/x86_64-unknown-dragonfly5.9/./libstdc++-v3/src/.libs -fmessage-length=0 -fno-show-column -ffunction-sections -fdata-sections -g -O2 -DLOCALEDIR="." -nostdinc++ -I/build/trunk/x86_64-unknown-dragonfly5.9/libstdc++-v3/include/x86_64-unknown-dragonfly5.9 -I/build/trunk/x86_64-unknown-dragonfly5.9/libstdc++-v3/include -I/data/gg/libstdc++-v3/libsupc++ -I/data/gg/libstdc++-v3/include/backward -I/data/gg/libstdc++-v3/testsuite/util /data/gg/libstdc++-v3/testsuite/27_io/headers/cstdio/types_std.cc -fdiagnostics-plain-output -S -o types_std.s /data/gg/libstdc++-v3/testsuite/27_io/headers/cstdio/types_std.cc:25: error: aggregate 'FILE gnu::f' has incomplete type and cannot be defined compiler exited with status 1 FAIL: 27_io/headers/cstdio/types_std.cc (test for excess errors) Excess errors: /data/gg/libstdc++-v3/testsuite/27_io/headers/cstdio/types_std.cc:25: error: aggregate 'FILE gnu::f' has incomplete type and cannot be defined extra_tool_flags are: On DragonFly the FILE type is declared as opaque struct and its internals are never exposed on purpose: typedef struct __FILE FILE; Even cppreference mentions that std::FILE may be semantically non-copyable. Could "std::FILE f;" test be excluded by #if !defined(__DragonFly__) or simply changed to a more usual use case of "std::FILE *fp;" ?