decl.c (grokdeclarator): Allow field with same name as class in extern "C".
authorJason Merrill <jason@yorick.cygnus.com>
Sat, 12 Dec 1998 16:41:15 +0000 (16:41 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 12 Dec 1998 16:41:15 +0000 (11:41 -0500)
commit4d7614e9f1741e6d01c35ba1e40e22da4abe91cd
treeca189ed953b571a2b77b7df975656cfd2e91ab68
parentd5db8224ad6c2ef118b67e22ec6820b94fa5fbb2
decl.c (grokdeclarator): Allow field with same name as class in extern "C".

* decl.c (grokdeclarator): Allow field with same name as class
in extern "C".
* decl.c (lookup_name_real): Don't limit field lookup to types.
* class.c (check_member_decl_is_same_in_complete_scope): No error
if icv and x are the same.
* lex.c (do_identifier): Tweak error message.

From-SVN: r24269
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/lex.c