[Bug testsuite/106795] New: [13 regression] g++.dg/tree-ssa/empty-loop.C fails with excess errors after r13-2303-gb911ca4231a366
seurer at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 31 16:44:40 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106795
Bug ID: 106795
Summary: [13 regression] g++.dg/tree-ssa/empty-loop.C fails
with excess errors after r13-2303-gb911ca4231a366
Product: gcc
Version: 13.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:b911ca4231a366ddfd026f190b126bd517f4e640, r13-2303-gb911ca4231a366
make -k check-gcc RUNTESTFLAGS="dg.exp=g++.dg/tree-ssa/empty-loop.C"
FAIL: g++.dg/tree-ssa/empty-loop.C -std=gnu++17 (test for excess errors)
FAIL: g++.dg/tree-ssa/empty-loop.C -std=gnu++20 (test for excess errors)
# of expected passes 6
# of unexpected failures 2
Did this test case get missed in the updates?
FAIL: g++.dg/tree-ssa/empty-loop.C -std=gnu++20 (test for excess errors)
Excess errors:
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C:15:15:
warning: ignoring return value of 'constexpr std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>;
_Alloc = std::allocator<char>; size_type = long unsigned int]', declared with
attribute 'nodiscard' [-Wunused-result]
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C:18:15:
warning: ignoring return value of 'constexpr std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>;
_Alloc = std::allocator<char>; size_type = long unsigned int]', declared with
attribute 'nodiscard' [-Wunused-result]
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C:26:20:
warning: ignoring return value of 'constexpr std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>;
_Alloc = std::allocator<char>; size_type = long unsigned int]', declared with
attribute 'nodiscard' [-Wunused-result]
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C:27:20:
warning: ignoring return value of 'constexpr std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>;
_Alloc = std::allocator<char>; size_type = long unsigned int]', declared with
attribute 'nodiscard' [-Wunused-result]
commit b911ca4231a366ddfd026f190b126bd517f4e640 (HEAD, refs/bisect/bad)
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Aug 26 16:22:21 2022 +0100
libstdc++: Add [[nodiscard]] attribute to <string> and <string_view>
More information about the Gcc-bugs
mailing list