]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
init.c (build_offset_ref): Correct previous change to use build, not build_min.
authorMark Mitchell <mark@markmitchell.com>
Mon, 8 Jun 1998 00:20:34 +0000 (00:20 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 8 Jun 1998 00:20:34 +0000 (00:20 +0000)
* init.c (build_offset_ref): Correct previous change to use build,
not build_min.

From-SVN: r20319

gcc/cp/ChangeLog
gcc/cp/init.c

index 57ec88a2a4caf3a1e47f223b44b261c7f6bdd78a..07178e742ac502982032f4244ecce1bdee577e7e 100644 (file)
@@ -1,3 +1,8 @@
+1998-06-08  Mark Mitchell  <mark@markmitchell.com>
+
+       * init.c (build_offset_ref): Correct previous change to use build,
+       not build_min.
+
 1998-06-07  Mark Mitchell  <mark@markmitchell.com>
 
        * class.c (instantiate_type): Handle pointer-to-members where the
index b7b74c0ec96eb1f0a6a5bb9dfc6efa7c7a4069a9..c9de4833db18379eeb6fb349941e255919101d87 100644 (file)
@@ -1621,9 +1621,10 @@ build_offset_ref (type, name)
   if (type == std_node)
     return do_scoped_id (name, 0);
 
-  if (processing_template_decl || uses_template_parms (type)
-      || TREE_CODE (name) == TEMPLATE_ID_EXPR)
-    return build_min (SCOPE_REF, unknown_type_node, type, name);
+  if (processing_template_decl || uses_template_parms (type))
+    return build_min_nt (SCOPE_REF, type, name);
+  else if (TREE_CODE (name) == TEMPLATE_ID_EXPR)
+    return build (SCOPE_REF, unknown_type_node, type, name);
 
   /* Handle namespace names fully here.  */
   if (TREE_CODE (type) == NAMESPACE_DECL)