public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/104874] New: Non-compile test in string_vector_iterators.cc test fails for the wrong reason.
@ 2022-03-10 22:49 brooks at gcc dot gnu.org
2022-03-10 22:58 ` [Bug libstdc++/104874] " redi at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: brooks at gcc dot gnu.org @ 2022-03-10 22:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104874
Bug ID: 104874
Summary: Non-compile test in string_vector_iterators.cc test
fails for the wrong reason.
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: brooks at gcc dot gnu.org
Target Milestone: ---
The testsuite/24_iterators/random_access/string_vector_iterators.cc test
contains the following code blob, in every version since the test originated
with the initial libstdc++ checkin in April 2000, through to current HEAD:
569 #ifdef ITER24_F8
570 std::vector<const int> v(1);
571 std::vector<const int>::reference r(v.begin()[0]);
572 r = 1; // cannot assign through reference to
const
573 failures++;
574 #endif
This code actually fails to compile on the first line because the template
parameter of a std::container object cannot be const.
This indicates a stronger problem with these non-compile tests, which is that
they're not actually testing what we think they're testing. (As far as I can
tell, they're not checked at all, and so should either be deleted or replaced
with proper dejagnu non-compile tests.)
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libstdc++/104874] Non-compile test in string_vector_iterators.cc test fails for the wrong reason.
2022-03-10 22:49 [Bug libstdc++/104874] New: Non-compile test in string_vector_iterators.cc test fails for the wrong reason brooks at gcc dot gnu.org
@ 2022-03-10 22:58 ` redi at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2022-03-10 22:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104874
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-03-10
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The whole wrong_stuff function should be removed, it's not doing anything.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-10 22:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-10 22:49 [Bug libstdc++/104874] New: Non-compile test in string_vector_iterators.cc test fails for the wrong reason brooks at gcc dot gnu.org
2022-03-10 22:58 ` [Bug libstdc++/104874] " redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).