decl.c (poplevel): Check DECL_INITIAL invariant.
authorGeoffrey Keating <geoffk@apple.com>
Fri, 1 Dec 2006 23:01:05 +0000 (23:01 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 1 Dec 2006 23:01:05 +0000 (23:01 +0000)
commit72c4a4ca45bb4adc746cedd9eba5960b357b6537
tree6a7205d17e6c8b71f9549fe22d01ac548d72b018
parent01975fc73d3e6f23fac39e0593363af838980d95
decl.c (poplevel): Check DECL_INITIAL invariant.

* decl.c (poplevel): Check DECL_INITIAL invariant.
(duplicate_decls): Preserve DECL_INITIAL when eliminating
a new definition in favour of an old declaration.
(start_preparsed_function): Define and document value of
DECL_INITIAL before and after routine.
(finish_function): Check DECL_INITIAL invariant.
* parser.c
(cp_parser_function_definition_from_specifiers_and_declarator):
Skip duplicate function definitions.

From-SVN: r119427
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/method.c
gcc/cp/parser.c