Fixes related to handling of C++ methods (handle destructors

and parameters that are functions).
This commit is contained in:
Per Bothner
1991-11-12 22:20:02 +00:00
parent 5f12485297
commit 0e2a896cf5
5 changed files with 56 additions and 29 deletions

View File

@@ -2383,20 +2383,10 @@ read_struct_type (pp, type)
{
*pp += 1;
if (**pp == '=')
if (**pp == '=' || **pp == '+' || **pp == '-')
{
TYPE_FLAGS (type)
|= TYPE_FLAG_HAS_CONSTRUCTOR | TYPE_FLAG_HAS_DESTRUCTOR;
*pp += 1;
}
else if (**pp == '+')
{
TYPE_FLAGS (type) |= TYPE_FLAG_HAS_CONSTRUCTOR;
*pp += 1;
}
else if (**pp == '-')
{
TYPE_FLAGS (type) |= TYPE_FLAG_HAS_DESTRUCTOR;
/* Obsolete flags that used to indicate the presence
of constructors and/or destructors. */
*pp += 1;
}