except.c (expand_throw): Use TYPE_PTR_P to check for pointers.
* except.c (expand_throw): Use TYPE_PTR_P to check for pointers. * decl.c (check_tag_decl): Do complain about null friend decl at file scope. From-SVN: r23856
This commit is contained in:
parent
f1db357664
commit
08b24bda51
@ -1,3 +1,10 @@
|
|||||||
|
1998-11-25 Jason Merrill <jason@yorick.cygnus.com>
|
||||||
|
|
||||||
|
* except.c (expand_throw): Use TYPE_PTR_P to check for pointers.
|
||||||
|
|
||||||
|
* decl.c (check_tag_decl): Do complain about null friend decl at
|
||||||
|
file scope.
|
||||||
|
|
||||||
1998-11-25 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
|
1998-11-25 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
|
||||||
|
|
||||||
* lex.c (make_lang_type): Clear the whole struct lang_type, not
|
* lex.c (make_lang_type): Clear the whole struct lang_type, not
|
||||||
|
@ -6483,10 +6483,11 @@ check_tag_decl (declspecs)
|
|||||||
}
|
}
|
||||||
else if (value == ridpointers[(int) RID_FRIEND])
|
else if (value == ridpointers[(int) RID_FRIEND])
|
||||||
{
|
{
|
||||||
friendp = 1;
|
|
||||||
if (current_class_type == NULL_TREE
|
if (current_class_type == NULL_TREE
|
||||||
|| current_scope () != current_class_type)
|
|| current_scope () != current_class_type)
|
||||||
ob_modifier = value;
|
ob_modifier = value;
|
||||||
|
else
|
||||||
|
friendp = 1;
|
||||||
}
|
}
|
||||||
else if (value == ridpointers[(int) RID_STATIC]
|
else if (value == ridpointers[(int) RID_STATIC]
|
||||||
|| value == ridpointers[(int) RID_EXTERN]
|
|| value == ridpointers[(int) RID_EXTERN]
|
||||||
|
@ -996,7 +996,7 @@ expand_throw (exp)
|
|||||||
pop_obstacks ();
|
pop_obstacks ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TREE_CODE (TREE_TYPE (exp)) == POINTER_TYPE)
|
if (TYPE_PTR_P (TREE_TYPE (exp)))
|
||||||
throw_type = build_eh_type (exp);
|
throw_type = build_eh_type (exp);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user