cvt.c (cp_convert_to_pointer): Pass itf_complain, not itf_no_attributes.
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 17 Aug 2000 14:09:21 +0000 (14:09 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 17 Aug 2000 14:09:21 +0000 (14:09 +0000)
* cvt.c (cp_convert_to_pointer): Pass itf_complain, not
itf_no_attributes.

From-SVN: r35759

gcc/cp/ChangeLog
gcc/cp/cvt.c

index 98db77a55a2ae853dc4ca1a36acdec69317d792c..ef5b4cb255e0d862ece28090cb53f8f213aa1c46 100644 (file)
@@ -2,6 +2,9 @@
 
        * class.c (instantiate_type): Reinstate local variable
        deleted in previous change.
+       
+       * cvt.c (cp_convert_to_pointer): Pass itf_complain, not
+       itf_no_attributes.
 
 2000-08-17  Nathan Sidwell  <nathan@codesourcery.com>
 
index 77e7ae81ed12b2e8eaf312c9059c2be8c738d181..606f854269e2d30665d6fd044d31015b6ffd2ebc 100644 (file)
@@ -267,7 +267,7 @@ cp_convert_to_pointer (type, expr)
     }
 
   if (type_unknown_p (expr))
-    return instantiate_type (type, expr, itf_no_attributes);
+    return instantiate_type (type, expr, itf_complain);
 
   cp_error ("cannot convert `%E' from type `%T' to type `%T'",
            expr, intype, type);