[C++ Patch] for c++/54537

Fabien Chêne fabien.chene@gmail.com
Wed Nov 14 21:33:00 GMT 2012


2012/11/14 Paolo Carlini <paolo.carlini@oracle.com>:
[...]
> Since we came to the conclusion that removing the overload for (double,
> double) worked, let's just do that and be done with it. Then we have a few
> months before the release to make sure that we aren't regressing, safe
> enough for this legacy TR1 stuff, IMO.

Good, here is the patch then, bootstrapped and tested
x86_64-unknown-linux-gnu without regressions on a old tree.
I plan to perform an additional testing before committing anyway.

2012-11-14  Fabien Chêne  <fabien@gcc.gnu.org>
        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.

2012-11-14  Fabien Chêne  <fabien@gcc.gnu.org>

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

2012-11-14  Fabien Chêne  <fabien@gcc.gnu.org>

        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.

-- 
Fabien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 54537.patch
Type: application/octet-stream
Size: 6703 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121114/5ecd7c68/attachment.obj>


More information about the Gcc-patches mailing list