decl.c (grokdeclarator): Complain about a variable using constructor syntax coming...
authorJason Merrill <jason@yorick.cygnus.com>
Mon, 26 Oct 1998 11:59:09 +0000 (11:59 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 26 Oct 1998 11:59:09 +0000 (06:59 -0500)
commit1eb0072d903cc740b71d452d611f9ffb59cf472f
tree539b807a659c1fa42b10fcfcca02cce43e7627b7
parent26f63a7785248ef733ab3a89c56bede58860472c
decl.c (grokdeclarator): Complain about a variable using constructor syntax coming back null from start_decl.

* decl.c (grokdeclarator): Complain about a variable using
constructor syntax coming back null from start_decl.
Fixes g++.other/decl2.C
* friend.c (make_friend_class): Complain about trying to make
a non-class type a friend.
Fixes g++.other/friend5.C
* decl.c (grokfndecl): Set DECL_INITIAL for a defn here.
(start_function): Not here.
Fixes g++.law/friend4.C

From-SVN: r23353
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/friend.c