Hi! I'd like to ping the restrict_based_on_field attribute patch: http://gcc.gnu.org/ml/gcc-patches/2011-10/msg00135.html
We currently don't do cast restricts and even if we do them again, as this attribute doesn't make the type __restrict it wouldn't affect those, it only affects parameters, if they are __restrict themselves what they point to, and global vars. IMHO it would be a pitty not to improve generated code for std::vector for 4.7. Jakub