Commit 34ff2673 by Roger Sayle Committed by Roger Sayle

re PR c++/11409 (using declarations and fabs built-in)


	PR c++/11409
	* class.c (resolve_address_of_overloaded_function): When building
	list of matching non-template function decls, ignore anticipated
	declarations of undeclared or shadowed GCC builtins.

	* g++.dg/overload/builtin3.C: New test case.

From-SVN: r71139
parent b9c87401
2003-09-06 Roger Sayle <roger@eyesopen.com>
PR c++/11409
* class.c (resolve_address_of_overloaded_function): When building
list of matching non-template function decls, ignore anticipated
declarations of undeclared or shadowed GCC builtins.
2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
PR c++/11595
......
......@@ -5777,7 +5777,11 @@ cannot resolve overloaded function `%D' based on conversion to type `%T'",
/* We're looking for a non-static member, and this isn't
one, or vice versa. */
continue;
/* Ignore anticipated decls of undeclared builtins. */
if (DECL_ANTICIPATED (fn))
continue;
/* See if there's a match. */
fntype = TREE_TYPE (fn);
if (is_ptrmem)
......
2003-09-06 Roger Sayle <roger@eyesopen.com>
PR c++/11409
* g++.dg/overload/builtin3.C: New test case.
2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
PR c/9862
......
// PR c++/11409
// { dg-do compile }
namespace std {
double fabs (double);
}
using std::fabs;
double (*p) (double) = &fabs; // { dg-bogus "is ambiguous" "" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment