https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104019
--- Comment #8 from Rimvydas (RJ) <rimvydas.jas at gmail dot com> --- Thank you for the patches. Testsuite now gives: PASS: 17_intro/headers/c++1998/stdc++.cc (test for excess errors)PASS: 17_intro/headers/c++1998/stdc++_multiple_inclusion.cc (test for excess errors) PASS: 17_intro/headers/c++2011/stdc++.cc (test for excess errors) PASS: 17_intro/headers/c++2011/stdc++_multiple_inclusion.cc (test for excess errors) PASS: 17_intro/headers/c++2014/stdc++.cc (test for excess errors) PASS: 17_intro/headers/c++2014/stdc++_multiple_inclusion.cc (test for excess errors) PASS: 17_intro/headers/c++2017/stdc++.cc (test for excess errors) PASS: 17_intro/headers/c++2017/stdc++_multiple_inclusion.cc (test for excess errors) FAIL: 17_intro/headers/c++2020/stdc++.cc (test for excess errors) FAIL: 17_intro/headers/c++2020/stdc++_multiple_inclusion.cc (test for excess errors) 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++.cc:25: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr_base.h: In member function 'void std::_Sp_counted_array_base<_Alloc>::_M_init(typename std::allocator_traits<_Alloc>::value_type*, _Init)': /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr_base.h:767: warning: typedef 'using value_type = using _Up = typename std::allocator_traits<_Alloc>::value_type' locally defined but not used [-Wunused-local-typedefs] /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr_base.h:768: warning: typedef 'using difference_type = std::ptrdiff_t' locally defined but not used [-Wunused-local-typedefs] /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr_base.h:771: warning: typedef 'using iterator_category = struct std::forward_iterator_tag' locally defined but not used [-Wunused-local-typedefs] In file included from /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/x86_64-unknown-dragonfly6.3/bits/stdc++.h:144: /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++.cc (test for excess errors) Excess errors: /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr_base.h:767: warning: typedef 'using value_type = using _Up = typename std::allocator_traits<_Alloc>::value_type' locally defined but not used [-Wunused-local-typedefs] /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr_base.h:768: warning: typedef 'using difference_type = std::ptrdiff_t' locally defined but not used [-Wunused-local-typedefs] /build/trunk/x86_64-unknown-dragonfly6.3/libstdc++-v3/include/bits/shared_ptr_base.h:771: warning: typedef 'using iterator_category = struct std::forward_iterator_tag' locally defined but not used [-Wunused-local-typedefs] /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] The -Wunused-local-typedefs warnings seem to have been recently introduced in g:9a0b518a82db68c5cbd9ea8ccc47c2ff45182519 commit. Same c++2020 warnings are reproducible on GLIBC targets when running: $ make check-target-libstdc++-v3 -k RUNTESTFLAGS="conformance.exp=stdc\+\+*.cc --target_board=unix/-Wall/-Wsystem-headers/"