* cvt.c (convert_lvalue): Remove.
* cp-tree.h: Remove the corresponding prototype.
From-SVN: r93755
* class.c (get_enclosing_class): Remove.
* cp-tree.h: Remove the corresponding prototypes.
+ * cvt.c (convert_lvalue): Remove.
+ * cp-tree.h: Remove the corresponding prototype.
+
2005-01-15 Jakub Jelinek <jakub@redhat.com>
PR c++/19263
/* in cvt.c */
extern tree convert_to_reference (tree, tree, int, int, tree);
extern tree convert_from_reference (tree);
-extern tree convert_lvalue (tree, tree);
extern tree force_rvalue (tree);
extern tree ocp_convert (tree, tree, int, int);
extern tree cp_convert (tree, tree);
return val;
}
-/* Implicitly convert the lvalue EXPR to another lvalue of type TOTYPE,
- preserving cv-qualification. */
-
-tree
-convert_lvalue (tree totype, tree expr)
-{
- totype = cp_build_qualified_type (totype, TYPE_QUALS (TREE_TYPE (expr)));
- totype = build_reference_type (totype);
- expr = convert_to_reference (totype, expr, CONV_IMPLICIT, LOOKUP_NORMAL,
- NULL_TREE);
- return convert_from_reference (expr);
-}
-
/* Really perform an lvalue-to-rvalue conversion, including copying an
argument of class type into a temporary. */