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

--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Jan  3 11:11:31 2014
New Revision: 206313

URL: http://gcc.gnu.org/viewcvs?rev=206313&root=gcc&view=rev
Log:
/cp
2014-01-03  Paolo Carlini  <paolo.carlini@oracle.com>

    Core DR 1442
    PR c++/59165
    * parser.c (cp_parser_perform_range_for_lookup): Don't pass true
    as include_std to perform_koenig_lookup.
    (cp_parser_postfix_expression): Adjust.
    * pt.c (tsubst_copy_and_build): Likewise.
    * semantics.c (perform_koenig_lookup): Remove bool parameter.
    (omp_reduction_lookup): Adjust.
    * name-lookup.c (lookup_arg_dependent_1): Remove bool parameter.
    (lookup_arg_dependent): Likewise.
    (lookup_function_nonclass): Adjust.
    * name-lookup.h: Adjust declaration.
    * cp-tree.h: Likewise.

/testsuite
2014-01-03  Paolo Carlini  <paolo.carlini@oracle.com>

    Core DR 1442
    PR c++/59165
    * g++.dg/cpp0x/range-for28.C: New.
    * g++.dg/cpp0x/range-for3.C: Update.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/range-for28.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/cp/name-lookup.h
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/range-for3.C


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