[Bug c++/59165] gcc looks up begin(), end() for for-range loops for ints in namespace std

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 18 10:28:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59165

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Well, this changed only post-C++11 in
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1442 which is
simply unimplemented. Frankly, I'm not even sure we want to implement the
proposed resolution right now (for comparison, ICC doesn't). In case, changing
things like (in cp_parser_perform_range_for_lookup):

      member_begin = perform_koenig_lookup (id_begin, vec,
                        /*include_std=*/true,
                        tf_warning_or_error);

would be easy, I guess.



More information about the Gcc-bugs mailing list