aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-06-13 18:23:39 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-06-13 18:23:39 -0400
commitc8faea875f141782c70267f2020ba3861fc27d13 (patch)
tree4463501b868fe1ad06ac72c677b01166d945c9a0
parentdf38ebdddbe9930ae15570cea3a8fb28cd0d0ebd (diff)
downloadgcc-c8faea875f141782c70267f2020ba3861fc27d13.zip
gcc-c8faea875f141782c70267f2020ba3861fc27d13.tar.gz
gcc-c8faea875f141782c70267f2020ba3861fc27d13.tar.bz2
Unknown; from Jason.
From-SVN: r9937
-rw-r--r--gcc/cp/typeck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index 7e917da..ef4667d 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);