https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104019
Bug ID: 104019 Summary: Testsuite 17_intro/headers/c++2020/stdc++_multiple_inclusion.cc failures Product: gcc Version: 12.0 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: 17_intro/headers/c++1998/stdc++.cc (test for excess errors) FAIL: 17_intro/headers/c++1998/stdc++_multiple_inclusion.cc (test for excess errors) FAIL: 17_intro/headers/c++2011/stdc++.cc (test for excess errors) FAIL: 17_intro/headers/c++2011/stdc++_multiple_inclusion.cc (test for excess errors) FAIL: 17_intro/headers/c++2014/stdc++.cc (test for excess errors) FAIL: 17_intro/headers/c++2014/stdc++_multiple_inclusion.cc (test for excess errors) FAIL: 17_intro/headers/c++2017/stdc++.cc (test for excess errors) FAIL: 17_intro/headers/c++2017/stdc++_multiple_inclusion.cc (test for excess errors) Excess errors: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr_base.h:340: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] FAIL: 17_intro/headers/c++2020/stdc++.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-dragonfly6.3/libstdc++-v3/src -L/build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/src/.libs -L/build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/libsupc++/.libs -B/opt/gcctrunk/x86_64-unknown-dragonfly6.3/bin/ -B/opt/gcctrunk/x86_64-unknown-dragonfly6.3/lib/ -isystem /opt/gcctrunk/x86_64-unknown-dragonfly6.3/include -isystem /opt/gcctrunk/x86_64-unknown-dragonfly6.3/sys-include -fchecking=1 -B/build/trunk/x86_64-unknown-dragonfly6.3/./libstdc++-v3/src/.libs -fmessage-length=0 -fno-show-column -ffunction-sections -fdata-sections -g -O2 -DLOCALEDIR="." -nostdinc++ -I/build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/x86_64-unknown-dragonfly6.3 -I/build/trunk/x86_64-unknown-dragonfly6.3/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/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc -std=gnu++2a -Wall -Wsystem-headers -fdiagnostics-plain-output -S -o stdc++_multiple_inclusion.s In file included from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/x86_64-unknown-dragonfly6.3/bits/stdc++.h:152, from /data/gg/libstdc++-v3/testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc:25: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/version:81: warning: "__cpp_lib_exchange_function" redefined In file included from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/x86_64-unknown-dragonfly6.3/bits/stdc++.h:94, from /data/gg/libstdc++-v3/testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc:25: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/utility:87: note: this is the location of the previous definition In file included from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/x86_64-unknown-dragonfly6.3/bits/stdc++.h:152, from /data/gg/libstdc++-v3/testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc:25: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/version:83: warning: "__cpp_lib_integer_sequence" redefined In file included from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/stl_pair.h:62, from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/stl_algobase.h:64, from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/specfun.h:45, from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/cmath:1935, from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/x86_64-unknown-dragonfly6.3/bits/stdc++.h:41, from /data/gg/libstdc++-v3/testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc:25: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/utility.h:160: note: this is the location of the previous definition In file included from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/x86_64-unknown-dragonfly6.3/bits/stdc++.h:152, from /data/gg/libstdc++-v3/testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc:25: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/version:128: warning: "__cpp_lib_as_const" redefined In file included from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/x86_64-unknown-dragonfly6.3/bits/stdc++.h:94, from /data/gg/libstdc++-v3/testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc:25: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/utility:100: note: this is the location of the previous definition In file included from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr.h:53, from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/memory:77, from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/x86_64-unknown-dragonfly6.3/bits/stdc++.h:82, from /data/gg/libstdc++-v3/testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc:25: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr_base.h: In member function 'void std::_Sp_counted_base<_Lp>::_M_release() [with __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]': /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr_base.h:340: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] In file included from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/x86_64-unknown-dragonfly6.3/bits/stdc++.h:144, from /data/gg/libstdc++-v3/testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc:25: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/latch: In member function 'void std::latch::count_down(std::ptrdiff_t)': /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/latch:65: warning: comparison of integer expressions of different signedness: 'const long unsigned int' and 'std::ptrdiff_t' {aka 'long int'} [-Wsign-compare] FAIL: 17_intro/headers/c++2020/stdc++_multiple_inclusion.cc (test for excess errors) Excess errors: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/version:81: warning: "__cpp_lib_exchange_function" redefined /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/version:83: warning: "__cpp_lib_integer_sequence" redefined /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/version:128: warning: "__cpp_lib_as_const" redefined /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr_base.h:340: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/latch:65: warning: comparison of integer expressions of different signedness: 'const long unsigned int' and 'std::ptrdiff_t' {aka 'long int'} [-Wsign-compare] extra_tool_flags are: -std=gnu++2a -Wall -Wsystem-headers In comparison the releases/gcc-11 branch currently has only -Wsign-compare warning in c++2020 testcases.