gcc/cp/
commitea1a58317a338c347e2017b851fdd3e0d2d5809b
authorbergner <bergner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Aug 2013 19:24:37 +0000 (1 19:24 +0000)
committerbergner <bergner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Aug 2013 19:24:37 +0000 (1 19:24 +0000)
treecd60a00f627c3f9f0d7d19e369f422b4c4290ae0
parentadf64732e878f2cf03558d7663c53ae3184a5661
gcc/cp/
        PR c++/54537
        * cp-tree.h: Check OVL_USED with OVERLOAD_CHECK.
        * name-lookup.c (do_nonmember_using_decl): Make sure we have an
OVERLOAD before calling OVL_USED. Call diagnose_name_conflict
instead of issuing an error without mentioning the conflicting
declaration.

libstdc++-v3/
        PR c++/54537
* include/tr1/cmath: Remove pow(double,double) overload, remove a
duplicated comment about DR 550. Add a comment to explain the
issue.
* testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: New.

gcc/testsuite/
        PR c++/54537
        * g++.dg/overload/using3.C: New.
* g++.dg/overload/using2.C: Adjust.
* g++.dg/lookup/using9.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201414 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/using9.C
gcc/testsuite/g++.dg/overload/using2.C
gcc/testsuite/g++.dg/overload/using3.C [new file with mode: 0644]
libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1/cmath
libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc [new file with mode: 0644]