https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101782
Bug ID: 101782 Summary: [12 regression] Excess errors in g++.dg/cpp2a/concepts-pr67774.C after r12-2729 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:240b01b0215f9e46ecf04267c8a3faeb19d4fe3c, r12-2729 make -k check-gcc RUNTESTFLAGS="dg.exp=g++.dg/cpp2a/concepts-pr67774.C" FAIL: g++.dg/cpp2a/concepts-pr67774.C -std=c++2a (test for excess errors) # of expected passes 1 # of unexpected failures 1 # of unsupported tests 3 FAIL: g++.dg/cpp2a/concepts-pr67774.C -std=c++2a (test for excess errors) Excess errors: /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/stl_iterator.h:1123:5: error: two consecutive '[' shall only introduce an attribute before '[' token /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/stl_iterator.h:1987:7: error: two consecutive '[' shall only introduce an attribute before '[' token /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/stl_iterator.h:2010:7: error: two consecutive '[' shall only introduce an attribute before '[' token /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/stl_iterator.h:2034:7: error: two consecutive '[' shall only introduce an attribute before '[' token /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/ranges_base.h:113:9: error: two consecutive '[' shall only introduce an attribute before '[' token /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/ranges_base.h:165:9: error: two consecutive '[' shall only introduce an attribute before '[' token /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/ranges_base.h:270:9: error: two consecutive '[' shall only introduce an attribute before '[' token /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/ranges_base.h:329:9: error: two consecutive '[' shall only introduce an attribute before '[' token /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/ranges_base.h:419:9: error: two consecutive '[' shall only introduce an attribute before '[' token /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/ranges_base.h:440:9: error: two consecutive '[' shall only introduce an attribute before '[' token /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/ranges_base.h:500:9: error: two consecutive '[' shall only introduce an attribute before '[' token /home3/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/ranges_base.h:542:9: error: two consecutive '[' shall only introduce an attribute before '[' token commit 240b01b0215f9e46ecf04267c8a3faeb19d4fe3c (HEAD, refs/bisect/bad) Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Aug 3 18:06:27 2021 +0100 libstdc++: Add [[nodiscard]] to iterators and related utilities