diff options
author | Roger Sayle <roger@eyesopen.com> | 2003-09-06 16:14:30 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-09-06 16:14:30 +0000 |
commit | 34ff26738c101dfa4a8dd25aecd3719f4481824a (patch) | |
tree | fbf5c5a92b6cd229539957d3a78ea8669ee81cb0 /gcc/cp/class.c | |
parent | b9c87401ae95e5b970c32a854adbb154951551f3 (diff) | |
download | gcc-34ff26738c101dfa4a8dd25aecd3719f4481824a.zip gcc-34ff26738c101dfa4a8dd25aecd3719f4481824a.tar.gz gcc-34ff26738c101dfa4a8dd25aecd3719f4481824a.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 1bd63cf..80765c0 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -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) |