aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-03-13 19:57:12 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-03-13 19:57:12 +0000
commit26f86471531d569c550a3e16fbd88a0cae6f18dd (patch)
treed2580badfc894825e324e272981797cd242d90e3 /gcc/cp/call.c
parent7210d5ae56f8e4230a227fcfd000015b6df6224e (diff)
downloadgcc-26f86471531d569c550a3e16fbd88a0cae6f18dd.zip
gcc-26f86471531d569c550a3e16fbd88a0cae6f18dd.tar.gz
gcc-26f86471531d569c550a3e16fbd88a0cae6f18dd.tar.bz2
call.c (initialize_reference): Remove bogus assertion.
* call.c (initialize_reference): Remove bogus assertion. * decl.c (build_ptrmemfunc_type): Revert change of 2003-03-09. * g++.dg/init/ref5.C: New test. * g++.dg/parse/ptrmem1.C: Likewise. From-SVN: r64316
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index c8baf74..d6496ad 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -6088,9 +6088,8 @@ initialize_reference (tree type, tree expr, tree decl)
conv = TREE_OPERAND (conv, 0);
/* If the next conversion is a BASE_CONV, skip that too -- but
remember that the conversion was required. */
- if (TREE_CODE (conv) == BASE_CONV)
+ if (TREE_CODE (conv) == BASE_CONV && !NEED_TEMPORARY_P (conv))
{
- my_friendly_assert (!NEED_TEMPORARY_P (conv), 20030307);
base_conv_type = TREE_TYPE (conv);
conv = TREE_OPERAND (conv, 0);
}