This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]