From c8faea875f141782c70267f2020ba3861fc27d13 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 13 Jun 1995 18:23:39 -0400 Subject: [PATCH] Unknown; from Jason. From-SVN: r9937 --- gcc/cp/typeck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 7e917daea87..ef4667d0ad2 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -1844,7 +1844,7 @@ build_indirect_ref (ptr, errorstring) ptr : default_conversion (ptr)); register tree type = TREE_TYPE (pointer); - if (ptr == current_class_decl) + if (ptr == current_class_decl && C_C_D) return C_C_D; ptr = build_expr_type_conversion (WANT_POINTER, pointer, 1); -- 2.30.2