diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-10 22:02:36 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-10 22:02:36 +0000 |
commit | ea720917ae32e14c46fee34e9f68b5ba8be7b203 (patch) | |
tree | 5237af52892767b0644fcaf91da60d4bfbc9ddcf /gcc/cp/cvt.c | |
parent | 2adccd409ba54c662b8d60d1b57092976812843d (diff) | |
download | gcc-ea720917ae32e14c46fee34e9f68b5ba8be7b203.tar.gz |
* cvt.c (convert_to_void): Use void_zero_node after overload failure.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73427 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index cf69b95a333..4cbfdaaef04 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -883,6 +883,7 @@ convert_to_void (tree expr, const char *implicit) of an overloaded function, and this is not one of them. */ pedwarn ("%s cannot resolve address of overloaded function", implicit ? implicit : "void cast"); + expr = void_zero_node; } else if (implicit && probe == expr && is_overloaded_fn (probe)) /* Only warn when there is no &. */ |