* typeck.c (common_type): Use same_type_p.
and revert:
* decl.c (bad_specifiers): It's OK to have an EH spec on a function
pointer.
From-SVN: r28607
-1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
+1999-08-08 Jason Merrill <jason@yorick.cygnus.com>
+
+ * typeck.c (common_type): Use same_type_p.
- * decl.c (bad_specifiers): It's OK to have an EH spec on a function
- pointer.
+1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (maybe_get_template_decl_from_type_decl): Make sure that
we're looking at a class.
* gcc-2.95 Released.
-Sun Jul 25 23:40:51 PDT 1999 Jeff Law (law@cygnus.com)
-
- * gcc-2.95 Released.
-
Sun Jul 25 15:24:21 1999 Jeffrey A Law (law@cygnus.com)
* g++FAQ.texi: Deleted per Joe Buck's request.
cp_error ("`const' and `volatile' function specifiers on `%D' invalid in %s declaration",
object, type);
if (friendp)
- cp_error_at ("`%D' declared as a friend", object);
- if (raises && ! TYPE_PTRFN_P (TREE_TYPE (object)))
- cp_error_at ("`%D' declared with an exception specification", object);
+ cp_error_at ("invalid friend declaration", object);
+ if (raises)
+ cp_error_at ("invalid exception specifications", object);
}
/* CTYPE is class type, or null if non-class.
tt1 = TYPE_MAIN_VARIANT (tt1);
tt2 = TYPE_MAIN_VARIANT (tt2);
- if (tt1 == tt2)
+ if (same_type_p (tt1, tt2))
target = tt1;
else if (b1)
{