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.