Modified Files:

ChangeLog stabsread.c

        * stabsread.c(read_struct_field): Fix the check when getting to
        member functions. (fix pr4000).
This commit is contained in:
Kung Hsu 1993-11-29 23:40:31 +00:00
parent 1d208eb3aa
commit e9935d43b7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Nov 29 15:34:58 1993 Kung Hsu (kung@cirdan.cygnus.com)
* stabsread.c(read_struct_field): Fix the check when getting to
member functions.
Mon Nov 29 16:48:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
gcc -Wall -O lint:

View File

@ -2343,7 +2343,7 @@ read_struct_fields (fip, pp, type, objfile)
}
read_one_struct_field (fip, pp, p, type, objfile);
}
if (p[1] == ':')
if (p[0] == ':' && p[1] == ':')
{
/* chill the list of fields: the last entry (at the head) is a
partially constructed entry which we now scrub. */