]> gcc.gnu.org Git - gcc.git/commit
re PR c++/54537 (undiagnosed using-declaration conflicting with used function)
authorFabien ChĂȘne <fabien@gcc.gnu.org>
Thu, 1 Aug 2013 19:24:37 +0000 (21:24 +0200)
committerPeter Bergner <bergner@gcc.gnu.org>
Thu, 1 Aug 2013 19:24:37 +0000 (14:24 -0500)
commitfb23b69e140ca2448ae7360fe4a71e81e6101aac
treecd60a00f627c3f9f0d7d19e369f422b4c4290ae0
parent12123452e45937b341f187716a2a8343f0908465
re PR c++/54537 (undiagnosed using-declaration conflicting with used function)

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.

Co-Authored-By: Peter Bergner <bergner@vnet.ibm.com>
From-SVN: r201414
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]
This page took 0.066194 seconds and 5 git commands to generate.