]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Unknown; from Jason.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 13 Jun 1995 22:23:39 +0000 (18:23 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 13 Jun 1995 22:23:39 +0000 (18:23 -0400)
From-SVN: r9937

gcc/cp/typeck.c

index 7e917daea878229c3f9522cf80e8939a508c5018..ef4667d0ad22da01b608e551ab1e1c2dd1287f5f 100644 (file)
@@ -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);