public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/51850] New: debug mode for std::array and tr1::array
@ 2012-01-13 17:53 redi at gcc dot gnu.org
2012-01-18 17:20 ` [Bug libstdc++/51850] " ed at edwardrosten dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2012-01-13 17:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51850
Bug #: 51850
Summary: debug mode for std::array and tr1::array
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: redi@gcc.gnu.org
Checking at least operator[] would be useful
http://gcc.gnu.org/ml/libstdc++/2012-01/msg00073.html
I'm happy to do it, if noone beats me to it
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/51850] debug mode for std::array and tr1::array
2012-01-13 17:53 [Bug libstdc++/51850] New: debug mode for std::array and tr1::array redi at gcc dot gnu.org
@ 2012-01-18 17:20 ` ed at edwardrosten dot com
2012-03-22 11:02 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ed at edwardrosten dot com @ 2012-01-18 17:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51850
--- Comment #1 from Edward Rosten <ed at edwardrosten dot com> 2012-01-18 16:35:40 UTC ---
Created attachment 26368
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26368
Adds bounds checking to std::array and tr1::array in debug mode.
I've attached a patch which adds bounds checking to std::array (C++0x) and
std::tr1::array.
The std::array patch keeps operator[] as constexpr.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/51850] debug mode for std::array and tr1::array
2012-01-13 17:53 [Bug libstdc++/51850] New: debug mode for std::array and tr1::array redi at gcc dot gnu.org
2012-01-18 17:20 ` [Bug libstdc++/51850] " ed at edwardrosten dot com
@ 2012-03-22 11:02 ` paolo.carlini at oracle dot com
2012-11-07 0:42 ` paolo at gcc dot gnu.org
2012-11-07 0:43 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-03-22 11:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51850
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2012-03-22
Target Milestone|--- |4.8.0
Ever Confirmed|0 |1
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-22 10:51:08 UTC ---
I'll do it, the normal way, for std::array only.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/51850] debug mode for std::array and tr1::array
2012-01-13 17:53 [Bug libstdc++/51850] New: debug mode for std::array and tr1::array redi at gcc dot gnu.org
2012-01-18 17:20 ` [Bug libstdc++/51850] " ed at edwardrosten dot com
2012-03-22 11:02 ` paolo.carlini at oracle dot com
@ 2012-11-07 0:42 ` paolo at gcc dot gnu.org
2012-11-07 0:43 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2012-11-07 0:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51850
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-11-07 00:42:26 UTC ---
Author: paolo
Date: Wed Nov 7 00:42:19 2012
New Revision: 193278
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193278
Log:
2012-11-06 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/51850
* include/debug/array: New, debug-mode implementation.
* include/profile/array: New.
* include/std/array: Adjust.
* include/std/tuple: Just include <array>.
* include/Makefile.am: Add.
* include/Makefile.in: Regenerate.
* testsuite/23_containers/array/debug/front1_neg.cc: New.
* testsuite/23_containers/array/debug/
square_brackets_operator1_neg.cc: Likewise.
* testsuite/23_containers/array/debug/front2_neg.cc: Likewise.
* testsuite/23_containers/array/debug/
square_brackets_operator2_neg.cc: Likewise.
* testsuite/23_containers/array/debug/back1_neg.cc: Likewise.
* testsuite/23_containers/array/debug/back2_neg.cc: Likewise.
* testsuite/23_containers/array/tuple_interface/get_neg.cc: Tweak
to run only in normal-mode.
* testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
Likewise.
* testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: New.
* testsuite/23_containers/array/tuple_interface/
tuple_element_debug_neg.cc: Likewise.
Added:
trunk/libstdc++-v3/include/debug/array
trunk/libstdc++-v3/include/profile/array
trunk/libstdc++-v3/testsuite/23_containers/array/debug/
trunk/libstdc++-v3/testsuite/23_containers/array/debug/back1_neg.cc
trunk/libstdc++-v3/testsuite/23_containers/array/debug/back2_neg.cc
trunk/libstdc++-v3/testsuite/23_containers/array/debug/front1_neg.cc
trunk/libstdc++-v3/testsuite/23_containers/array/debug/front2_neg.cc
trunk/libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator1_neg.cc
trunk/libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator2_neg.cc
trunk/libstdc++-v3/testsuite/23_containers/array/tuple_interface/get_debug_neg.cc
trunk/libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/Makefile.am
trunk/libstdc++-v3/include/Makefile.in
trunk/libstdc++-v3/include/std/array
trunk/libstdc++-v3/include/std/tuple
trunk/libstdc++-v3/testsuite/23_containers/array/tuple_interface/get_neg.cc
trunk/libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/51850] debug mode for std::array and tr1::array
2012-01-13 17:53 [Bug libstdc++/51850] New: debug mode for std::array and tr1::array redi at gcc dot gnu.org
` (2 preceding siblings ...)
2012-11-07 0:42 ` paolo at gcc dot gnu.org
@ 2012-11-07 0:43 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-07 0:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51850
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-07 00:43:19 UTC ---
Done.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-07 0:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-13 17:53 [Bug libstdc++/51850] New: debug mode for std::array and tr1::array redi at gcc dot gnu.org
2012-01-18 17:20 ` [Bug libstdc++/51850] " ed at edwardrosten dot com
2012-03-22 11:02 ` paolo.carlini at oracle dot com
2012-11-07 0:42 ` paolo at gcc dot gnu.org
2012-11-07 0:43 ` paolo.carlini at oracle dot com
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).